INNER CODE UNIT · Go

goreleaserAt

minekube/gate · ci_write_token_isolation_test.go:304

	goreleaserAt := -1
	for i, step := range build.Steps {
		if strings.HasPrefix(step.Uses, "goreleaser/goreleaser-action@") {
			goreleaserAt = i
			args := fmt.Sprint(step.With["args"])
			if !strings.Contains(args, "--skip=publish") {
				t.Errorf("release build GoReleaser args %q do not disable publication", args)
			}
			if _, ok := step.Env["GITHUB_TOKEN"]; ok {
				t.Error("release build exposes GITHUB_TOKEN to GoReleaser")
			}
		}
	}
	if goreleaserAt < 0 {
		t.Fatal("release-build never runs GoReleaser")
	}

	buildRaw := fmt.Sprint(build.Steps)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…