Skip to content

Use the bare .Env form for the tap and bucket tokens#51

Merged
tamnd merged 1 commit into
mainfrom
fix/cask-token-form
Jun 19, 2026
Merged

Use the bare .Env form for the tap and bucket tokens#51
tamnd merged 1 commit into
mainfrom
fix/cask-token-form

Conversation

@tamnd

@tamnd tamnd commented Jun 19, 2026

Copy link
Copy Markdown
Owner

GoReleaser validates that a brew cask / scoop manifest repository token is exactly {{ .Env.VAR_NAME }} and rejects any other interpolation. The index .Env form from the previous fix aborted the publish with 'expected {{ .Env.VAR_NAME }} only'.

The token is only rendered when an upload happens, and the secret is always set in CI, so the bare .Env form is safe. skip_upload keeps index .Env (not subject to the token rule, and degrades to empty for an unconfigured fork).

GoReleaser validates that a repository token template is exactly
{{ .Env.VAR_NAME }} and rejects any other interpolation, so the
index .Env form aborted the publish with 'expected {{ .Env.VAR_NAME }}
only'. The token is only rendered when an upload actually happens, and
in CI the secret is always set, so the bare form is safe here.

skip_upload keeps the index .Env form: it is not subject to the token
rule and index degrades to an empty string when the secret is unset, so
an unconfigured fork still skips the upload instead of erroring.
@tamnd tamnd merged commit 792878d into main Jun 19, 2026
9 checks passed
@tamnd tamnd deleted the fix/cask-token-form branch June 19, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant