Skip to content

ci: use GitHub App tokens instead of a personal access token - #134

Merged
desimone merged 1 commit into
mainfrom
desimone/ci-github-app-token
Oct 22, 2026
Merged

desimone merged 1 commit into
mainfrom
desimone/ci-github-app-token

Conversation

@desimone

@desimone desimone commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CI now authenticates with short-lived GitHub App installation tokens instead of a long-lived personal access token. Each job requests its token right before it needs one, limited to the repositories and permissions that job uses. Tokens expire after one hour. Commits made by automation are attributed to the app's bot account.

This follows GitHub's recommended practice for automation: no long-lived user credentials, least privilege per job, and short token lifetimes.

AI disclosure

Claude Code wrote this change and checked the workflows with actionlint.

@desimone
desimone requested a review from a team as a code owner October 22, 2026 04:36
@desimone
desimone requested review from kralicky and removed request for a team October 22, 2026 04:36
@desimone desimone changed the title ci: replace the apparitor PAT with pomerium-ci-bot app tokens ci: use GitHub App tokens instead of a personal access token Oct 22, 2026
@desimone
desimone force-pushed the desimone/ci-github-app-token branch from 852bef5 to 7a12860 Compare October 22, 2026 04:48
@desimone
desimone enabled auto-merge (squash) October 22, 2026 04:56
@desimone
desimone force-pushed the desimone/ci-github-app-token branch from 7a12860 to 642b17d Compare October 22, 2026 05:35
Each job requests a short-lived installation token scoped to the repositories and permissions it uses. Jobs that run branch or dependency code use a read-only app.
@desimone
desimone force-pushed the desimone/ci-github-app-token branch from 642b17d to d6c0a07 Compare October 22, 2026 05:40
@desimone
desimone merged commit d814596 into main Oct 22, 2026
9 checks passed
@desimone
desimone deleted the desimone/ci-github-app-token branch October 22, 2026 12:24
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