Skip to content

The tap token lives in a release environment only main can reach - #328

Merged
jamescrosswell merged 1 commit into
mainfrom
chore/release-environment
Sep 28, 2026
Merged

jamescrosswell merged 1 commit into
mainfrom
chore/release-environment

Conversation

@jamescrosswell

Copy link
Copy Markdown
Contributor

Follow-up to #326. The packages token moves out of the repo's secrets into the release environment, which only main can deploy to, so a workflow on any other branch can't read it.

  • Pins a-team's shared workflows at v0.1.3 (from v0.0.5). Only release-publish.yml changed between the two, gaining the environment input.
  • publish passes environment: release and secrets: inherit. Passing the secret by name can't work, because an environment's secrets only reach a called workflow through inherit (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 inherit works. After merging, delete the repo-level HOMEBREW_TAP_TOKEN. PACKAGES_TOKEN is already in the environment.

🤖 Generated with Claude Code

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]>
@jamescrosswell
jamescrosswell marked this pull request as ready for review September 28, 2026 10:49
@jamescrosswell
jamescrosswell merged commit a917371 into main Sep 28, 2026
16 checks 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