Skip to content

ci: use a GitHub App token for releases and the Homebrew tap - #71

Open
shane-nzer wants to merge 1 commit into
masterfrom
chore/release-app-token
Open

shane-nzer wants to merge 1 commit into
masterfrom
chore/release-app-token

Conversation

@shane-nzer

Copy link
Copy Markdown

Summary

Releases stop using the deploybot's PATs.

 release-publish-scheduled.yml
+  mint App token (this repo, contents:write)
-  gh release edit --draft=false   # CICD_TOKEN
+  gh release edit --draft=false   # App token, so release.yml still triggers
 release.yml
+  mint App token (homebrew-tools, contents:write)
-  goreleaser   # RELEASE_GITHUB_TOKEN for everything
+  goreleaser   # GITHUB_TOKEN for this repo, App token for the tap

App: springload-releases (Contents RW), installed on ecs-tool, aws-ssh and homebrew-tools. Secrets RELEASE_APP_CLIENT_ID and RELEASE_APP_PEM are already set.

Evidence

  • Before: the deploybot was demoted, so it has only Read on homebrew-tools. The next release would fail at the brew step.
    After: not run yet. The first real check is the next scheduled publish (1 Dec 17:00 UTC), or a manual workflow_dispatch.

Merge Danger

Door: two-way

Blast Radius: releases

If the App token step fails, the release build or the brew update fails. Revert this PR to go back to the PATs. Once this is merged and a release succeeds, the RELEASE_GITHUB_TOKEN and CICD_TOKEN secrets get deleted.

🤖 Generated with Claude Code

Replaces the RELEASE_GITHUB_TOKEN and CICD_TOKEN PATs (deploybot).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants