Skip to content

Commit f03f76a

Browse files
authored
Merge pull request #293 from PolicyEngine/fix/versioning-use-github-app-token
Fix versioning workflow: use GitHub App token instead of expired PAT
2 parents 3c5cc64 + 20e36c9 commit f03f76a

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)