ci(release): issue Homebrew tap token via Vault instead of a static PAT#15
Closed
kshahbw wants to merge 2 commits into
Closed
ci(release): issue Homebrew tap token via Vault instead of a static PAT#15kshahbw wants to merge 2 commits into
kshahbw wants to merge 2 commits into
Conversation
Replace the hardcoded HOMEBREW_TAP_TOKEN secret in the bump-formula job with a short-lived GitHub PAT minted by Bandwidth/vault-provider-action (OIDC -> Vault, 1h TTL, auto-revoked). Scope follows the repo's BAND SWI durable team via identity-source: repo, so it no longer depends on who cuts the release. Adds a temporary workflow_dispatch job to validate the issued token can reach the tap before the next real release; delete it once proven.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
The formula bump is the terminal release job and failure is cheap and recoverable, so a dedicated pre-validation workflow isn't worth the cleanup overhead.
Contributor
Author
|
Public repos don't support the vault provider action. |
ckoegel
approved these changes
Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Swaps the dead
HOMEBREW_TAP_TOKENstatic PAT in thebump-formularelease job for a short-lived GitHub PAT minted byBandwidth/vault-provider-action@v1(export-github-pat: true). The token is issued via OIDC → Vault, lives for one hour, and is auto-revoked at the end of the job.Scope is pinned to the repo's
BAND SWIdurable team viaidentity-source: repo, so the bump no longer depends on which person cut the release.Why
The hardcoded tap PAT no longer works, so the formula bump is currently broken. This removes the static-secret dependency entirely.
After merge
Bandwidth/homebrew-tap.HOMEBREW_TAP_TOKENrepo secret.The bump is the terminal release job, so if the token is misconfigured the release artifacts are still clean — re-run the bump after fixing.
Prereq (satisfied)
BAND SWIownsBandwidth/homebrew-tap, which is what scopes the issued token.