Skip to content

fix: use a plain .Env reference for the tap and bucket tokens - #6

Merged
cardoe merged 1 commit into
mainfrom
fix/goreleaser-token-template
Oct 27, 2026
Merged

cardoe merged 1 commit into
mainfrom
fix/goreleaser-token-template

Conversation

@cardoe

@cardoe cardoe commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

The v0.1.0 release run failed after creating the GitHub release, at the Homebrew cask and Scoop manifest steps:

homebrew cask: expected {{ .Env.VAR_NAME }} only (no plain-text or other interpolation)
scoop manifests: expected {{ .Env.VAR_NAME }} only (no plain-text or other interpolation)

GoReleaser only accepts a plain {{ .Env.VAR_NAME }} for repository tokens, so the conditional template is replaced with plain references to HOMEBREW_TAP_TOKEN and SCOOP_BUCKET_TOKEN. The release workflow already sets both from the GitHub App token.

Impact on v0.1.0

The v0.1.0 release is published with its archives and checksums, but it was never published to homebrew-tap or scoop-bucket, and the provenance attestation step did not run for it. This fix is intended to ship as v0.1.1.

Verification

goreleaser check passes. The publish step cannot be exercised before a tag, so the v0.1.1 release run is the real test.

GoReleaser only accepts {{ .Env.VAR_NAME }} for repository tokens, so the
conditional template made the Homebrew cask and Scoop manifest steps fail
after the GitHub release had been created.
@cardoe
cardoe merged commit 6638570 into main Oct 27, 2026
7 checks passed
@cardoe
cardoe deleted the fix/goreleaser-token-template branch October 27, 2026 17:46
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