Repository navigation
The tap token lives in a release environment only main can reach - #328
Merged
Merged
Conversation
Pins a-team's shared workflows at v0.1.3, whose publish job runs in the caller's `release` environment and reads its PACKAGES_TOKEN. A workflow on any other branch can't read the token any more. `secrets: inherit` replaces passing packages-token, because it's the only way an environment's secrets reach a called workflow (actions/runner#4453). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Follow-up to #326. The packages token moves out of the repo's secrets into the
releaseenvironment, which onlymaincan deploy to, so a workflow on any other branch can't read it.v0.1.3(fromv0.0.5). Onlyrelease-publish.ymlchanged between the two, gaining theenvironmentinput.publishpassesenvironment: releaseandsecrets: inherit. Passing the secret by name can't work, because an environment's secrets only reach a called workflow throughinherit(actions/runner#4453).Merge this after a-team's next release opens its tap PR. That release runs the same path, via mentaldesk/a-team#236, and confirms
inheritworks. After merging, delete the repo-levelHOMEBREW_TAP_TOKEN.PACKAGES_TOKENis already in the environment.🤖 Generated with Claude Code