Repository navigation
ci(dir): replace AGNTCY_BUILD_BOT_GH_TOKEN with the project GitHub App - #2516
Merged
Merged
Conversation
Mint a short-lived installation token with actions/create-github-app-token in the jobs that used the long-lived PAT, scoped to the permissions each job needs. This removes the last use of AGNTCY_BUILD_BOT_GH_TOKEN from this repository. Closes #2515 Signed-off-by: Mauro Sardara <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ramizpolic
approved these changes
Nov 19, 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.
Summary
Replace the long-lived PAT
AGNTCY_BUILD_BOT_GH_TOKENwith short-lived tokens minted from the project GitHub App (PROJECT_APP_ID/PROJECT_APP_KEY), usingactions/create-github-app-tokenas inagntcy/slim. This is part of the effort to eliminate the long-lived PATAGNTCY_BUILD_BOT_GH_TOKENacross theagntcyorganization.Each job requests only the permissions it needs. No reference to
AGNTCY_BUILD_BOT_GH_TOKENremains in this repository.Closes #2515
Before merging
PROJECT_APP_ID(the app Client ID) andPROJECT_APP_KEYmust be available to this repository.agntcy/csit(actions: write), which the integration trigger dispatches a workflow on.reusable-brew-update.yamlis also triggered onrelease, so it needs the secrets in this repository.After merging
Check the next run of the affected workflow, then delete the
AGNTCY_BUILD_BOT_GH_TOKENsecret from this repository.