Skip to content

ci: replace PAT_TOKEN with a GitHub App token - #18

Open
morde08 wants to merge 2 commits into
mainfrom
ci/github-app-token
Open

morde08 wants to merge 2 commits into
mainfrom
ci/github-app-token

Conversation

@morde08

@morde08 morde08 commented Nov 30, 2026 •

Copy link
Copy Markdown

The update workflow pushed its branch and opened its PR with PAT_TOKEN, which lost access to the org's internal repos on 2026-11-30. It now mints a token from the anuma-ci-bot App, scoped to this repo; a push made with an App token still triggers CI on the PR.

Before merge: ANUMA_CI_BOT_APP_ID (org variable) and ANUMA_CI_BOT_PRIVATE_KEY (org secret) must be visible to this repo, and the App installed on it. Same change as anuma-ai/sdk#1356.

After merge, the PAT_TOKEN repo secret can be deleted.


Note

Low Risk
CI-only credential swap; requires the bot App to be installed and org vars/secrets exposed to this repo before merge.

Overview
The scheduled Update SDK workflow no longer uses the repo PAT_TOKEN for checkout, push, and gh PR operations.

It adds a first step that mints a token via actions/create-github-app-token@v3.4.0 using org ANUMA_CI_BOT_APP_ID and ANUMA_CI_BOT_PRIVATE_KEY, and wires that token into actions/checkout and GH_TOKEN for the create/update PR step so automated SDK bumps keep working after PAT access to internal org repos was removed.

Reviewed by Cursor Bugbot for commit f973047. Configure here.

The update workflow checked out, pushed its branch and opened its PR with
PAT_TOKEN, which lost access to the org's internal repos on 2026-11-30.
Mint a token from the anuma-ci-bot App, scoped to this repo, instead. A
push made with an App token still triggers CI on the PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SCActPKUhKySvTsKR8gA21
@morde08
morde08 marked this pull request as ready for review November 30, 2026 23:36
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