Skip to content

test: extend forbidden-secret guard to .goreleaser.yaml (HOMEBREW_TAP_GITHUB_TOKEN negative-space assertion) #439

Backlog

Description

@jflowers

Finding

TestReleaseWorkflow_CallsShip's forbidden-substring guard
(cmd/gaze/release_workflow_test.go:131) scans only release.yml bytes.
PR #436 also removes token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" from
.goreleaser.yaml — the only other live consumer of the old secret name — but
no test reads .goreleaser.yaml. The secret's name can be reintroduced in the
goreleaser config with every check green: PR CI never runs GoReleaser, and
yamllint checks syntax only.

Suggested fix

Extend the negative-space assertion to each live consumer: read
.goreleaser.yaml in this test and assert HOMEBREW_TAP_GITHUB_TOKEN is
absent (keeping the existing release.yml scan).

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions