Skip to content

Commit e5eda4d

Browse files
authored
Merge pull request #261 from PolicyEngine/fix/use-github-token
fix: Use GitHub App token for versioning auto-publish
2 parents 8ab31f3 + 805d145 commit e5eda4d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/push.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,16 @@ jobs:
9595
needs: [Lint, Test]
9696
if: github.event.head_commit.message != 'Update package version'
9797
steps:
98+
- name: Generate GitHub App token
99+
id: app-token
100+
uses: actions/create-github-app-token@v1
101+
with:
102+
app-id: ${{ secrets.APP_ID }}
103+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
98104
- name: Checkout repo
99105
uses: actions/checkout@v4
100106
with:
101-
token: ${{ secrets.GITHUB_TOKEN }}
107+
token: ${{ steps.app-token.outputs.token }}
102108
- name: Setup Python
103109
uses: actions/setup-python@v5
104110
with:

changelog.d/fix-app-token.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use GitHub App token in push workflow Versioning job to enable auto-triggering of Phase 2 (Publish)

0 commit comments

Comments
 (0)