Skip to content

ci: fail the tap token before notarize - #7

Merged
TerrifiedBug merged 1 commit into
mainfrom
fix/tap-token-preflight
Aug 27, 2026
Merged

ci: fail the tap token before notarize#7
TerrifiedBug merged 1 commit into
mainfrom
fix/tap-token-preflight

Conversation

@TerrifiedBug

Copy link
Copy Markdown
Owner

The tap is public, so git clone with an empty HOMEBREW_TAP_TOKEN succeeds anonymously. The job then published the GitHub release and appcast.xml before dying at git push on the cask.

This adds a preflight after Resolve version (before importing the Developer ID cert):

  • empty-token guard (same pattern as SPARKLE_PRIVATE_KEY)
  • git ls-remote so an expired/invalid token fails immediately
  • gh api … .permissions.push so a read-only token fails too (ls-remote cannot see write scope on a public repo)

Do not tag v0.1.0 until this is on main.

The tap is public, so an unset HOMEBREW_TAP_TOKEN clones anonymously
and only dies at git push — after the GitHub release and appcast.xml
are already published. Probe emptiness, credentials, and push access
before Build, sign, notarize.
@TerrifiedBug
TerrifiedBug merged commit a0ec710 into main Aug 27, 2026
1 check passed
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