Skip to content

Mint GitHub App token in push workflow#551

Merged
MaxGhenis merged 1 commit intomasterfrom
migrate-to-app-token
Apr 18, 2026
Merged

Mint GitHub App token in push workflow#551
MaxGhenis merged 1 commit intomasterfrom
migrate-to-app-token

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Replace the expired POLICYENGINE_GITHUB PAT with a short-lived GitHub App token (APP_ID / APP_PRIVATE_KEY) in the versioning and Deploy jobs of .github/workflows/push.yaml.
  • Each job generates its own app-token step since GitHub App tokens do not cross job boundaries.
  • Update EndBug/add-and-commit@v9 to pass github_token: steps.app-token.outputs.token and fetch: false.
  • Replace GH_TOKEN env and the update_api.py cross-repo GITHUB_TOKEN with the app token output.
  • Add a towncrier fragment under changelog.d/fixed/.

Matches the pattern already used by policyengine-core (PR #470), policyengine-us (PR #7807), and microdf (PR #296).

Test plan

  • CI green on this PR (Lint)
  • Next commit to master that is not "Update PolicyEngine Canada" triggers the versioning job, which successfully pushes the auto-bump commit and kicks off Test / Publish / Deploy

Replace the expired POLICYENGINE_GITHUB PAT with a short-lived
GitHub App token (APP_ID / APP_PRIVATE_KEY) in the versioning and
Deploy jobs. Each job generates its own token since App tokens do
not cross job boundaries. Matches the pattern in policyengine-core
PR #470 and microdf PR #296.

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