Skip to content

Mint GitHub App token in push workflow - #10

Merged
MaxGhenis merged 1 commit into
masterfrom
migrate-to-app-token
Apr 17, 2026
Merged

MaxGhenis merged 1 commit into
masterfrom
migrate-to-app-token

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Summary

  • Replaces expired POLICYENGINE_GITHUB org PAT with a GitHub App token minted at job start via actions/create-github-app-token@v1.
  • Covers both jobs that previously consumed the PAT: versioning (checkout + EndBug/add-and-commit) and Deploy (checkout + update_api.py env).
  • Matches the pattern already landed in policyengine-core (#470), microdf (#296), and sibling country repos (us, ng, canada, it).

Test plan

  • Push CI green on master after merge (will be validated here via CI on this PR).
  • versioning job's auto-commit succeeds (fetch: false; App token in EndBug/add-and-commit).
  • Deploy job successfully calls update_api.py against policyengine-app with GH_TOKEN / GITHUB_TOKEN from App token.

Replace the expired POLICYENGINE_GITHUB org PAT with a GitHub App token
minted at job start via actions/create-github-app-token@v1. The App
(APP_ID / APP_PRIVATE_KEY) is already installed on this repo and is the
long-term auth path used by sibling repos (core, microdf, us, ng,
canada, it).

- versioning job: app-token feeds checkout and EndBug/add-and-commit
  (fetch: false so the action doesn't try to re-fetch with a stale ref)
- Deploy job: app-token feeds checkout and update_api.py env (GH_TOKEN
  + GITHUB_TOKEN)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MaxGhenis
MaxGhenis merged commit f54851a into master Apr 17, 2026
10 checks passed
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