Skip to content

Commit 20e36c9

Browse files
vahid-ahmadiclaude
andcommitted
Fix versioning workflow: replace expired PAT with GitHub App token
The POLICYENGINE_GITHUB personal access token expired, breaking the versioning workflow. This replaces it with a short-lived token generated from the org's GitHub App (APP_ID + APP_PRIVATE_KEY), which is more secure and doesn't depend on any individual's account. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3c5cc64 commit 20e36c9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/versioning.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ jobs:
1616
if: |
1717
(!(github.event.head_commit.message == 'Update package version'))
1818
steps:
19+
- name: Generate GitHub App token
20+
id: app-token
21+
uses: actions/create-github-app-token@v1
22+
with:
23+
app-id: ${{ secrets.APP_ID }}
24+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
1925
- name: Checkout repo
2026
uses: actions/checkout@v4
2127
with:
22-
token: ${{ secrets.POLICYENGINE_GITHUB }}
28+
token: ${{ steps.app-token.outputs.token }}
2329
fetch-depth: 0
2430
- name: Setup Python
2531
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)