Skip to content

Commit b15ea91

Browse files
authored
Merge pull request #3332 from PolicyEngine/fix-versioning-auth
Fix versioning job: replace expired PAT with GitHub App token
2 parents 577bf65 + 3fa9631 commit b15ea91

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/push.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@ jobs:
5454
&& !(github.event.head_commit.message == 'Update PolicyEngine API')
5555
runs-on: ubuntu-latest
5656
steps:
57+
- name: Generate GitHub App token
58+
id: app-token
59+
uses: actions/create-github-app-token@v1
60+
with:
61+
app-id: ${{ secrets.APP_ID }}
62+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
5763
- name: Checkout repo
5864
uses: actions/checkout@v4
5965
with:
60-
token: ${{ secrets.POLICYENGINE_GITHUB }}
66+
token: ${{ steps.app-token.outputs.token }}
6167
- name: Setup Python
6268
uses: actions/setup-python@v5
6369
with:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix versioning job authentication by replacing expired PAT with GitHub App token.

0 commit comments

Comments
 (0)