Mint GitHub App token in push workflow#26
Merged
Conversation
Replace the expired POLICYENGINE_GITHUB org PAT with a short-lived GitHub App token minted via actions/create-github-app-token in the versioning and Deploy jobs, and pass the App token to EndBug/add-and-commit via github_token with fetch: false. Matches the pattern already used in policyengine-core, microdf, policyengine-canada, and policyengine-us. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
caebc4d to
b3c4d75
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POLICYENGINE_GITHUBPAT with a short-lived GitHub App token minted viaactions/create-github-app-token@v1in theversioningandDeployjobsEndBug/add-and-commit@v9viagithub_token:and addfetch: falseenv.GH_TOKENinDeploy;update_api.pyreadsGITHUB_TOKENfrom its step envFollows the same pattern already landed in
policyengine-core#470,microdf#296,policyengine-canada,policyengine-us.Test plan
Update PolicyEngine Nigeriapush showsversioningandDeployjobs minting a token and succeedingCo-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com