Skip to content

ci(dir): replace AGNTCY_BUILD_BOT_GH_TOKEN with the project GitHub App - #2516

Merged
ramizpolic merged 1 commit into
mainfrom
ci/replace-build-bot-pat-with-github-app
Nov 19, 2026
Merged

ramizpolic merged 1 commit into
mainfrom
ci/replace-build-bot-pat-with-github-app

Conversation

@msardara

Copy link
Copy Markdown
Member

Summary

Replace the long-lived PAT AGNTCY_BUILD_BOT_GH_TOKEN with short-lived tokens minted from the project GitHub App (PROJECT_APP_ID / PROJECT_APP_KEY), using actions/create-github-app-token as in agntcy/slim. This is part of the effort to eliminate the long-lived PAT AGNTCY_BUILD_BOT_GH_TOKEN across the agntcy organization.

Each job requests only the permissions it needs. No reference to AGNTCY_BUILD_BOT_GH_TOKEN remains in this repository.

Closes #2515

Before merging

  • PROJECT_APP_ID (the app Client ID) and PROJECT_APP_KEY must be available to this repository.
  • The app must be installed on this repository and on agntcy/csit (actions: write), which the integration trigger dispatches a workflow on. reusable-brew-update.yaml is also triggered on release, 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_TOKEN secret from this repository.

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]>
@msardara
msardara requested a review from a team as a code owner November 19, 2026 12:43
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Nov 19, 2026
@msardara msardara changed the title ci: replace AGNTCY_BUILD_BOT_GH_TOKEN with the project GitHub App ci(dir): replace AGNTCY_BUILD_BOT_GH_TOKEN with the project GitHub App Nov 19, 2026
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ramizpolic
ramizpolic added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 8d07bd0 Nov 19, 2026
36 of 37 checks passed
@ramizpolic
ramizpolic deleted the ci/replace-build-bot-pat-with-github-app branch November 19, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: replace AGNTCY_BUILD_BOT_GH_TOKEN PAT with the project GitHub App

2 participants