Skip to content

Release publishes only from main, and CI's token is read-only - #326

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

jamescrosswell merged 1 commit into
mainfrom
chore/lock-down-release

Conversation

@jamescrosswell

Copy link
Copy Markdown
Contributor

Closes two ways a workflow on an unreviewed branch could reach users, ahead of the a-team App getting Workflows: write. Same change as mentaldesk/a-team#235.

  • CI's token is read-only. CI runs on a push to any branch and the repo default is write, so any script it runs could push, including straight to main.
  • Release publishes only from main. Run on another branch, it builds and stops there. Before, a dispatch on any branch would publish that branch to the tap and the Scoop bucket.

The tap token moves into the release environment in a follow-up. That needs the environment input from mentaldesk/a-team#235, which needs an a-team release first, and then this repo's pin bumped from v0.0.5. Until then, keep the repo-level HOMEBREW_TAP_TOKEN.

🤖 Generated with Claude Code

- ci.yml gets a read-only GITHUB_TOKEN. It runs on a push to any branch,
  and the repo default is write, so any script it runs could push,
  straight to main included.
- release.yml publishes only from main. It could be dispatched on any
  branch, which would ship unreviewed code to the tap and the bucket.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jamescrosswell
jamescrosswell marked this pull request as ready for review September 28, 2026 10:29
@jamescrosswell
jamescrosswell merged commit d53c913 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