Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/versioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ jobs:
if: (github.event.head_commit.message != 'Update package version')
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout repo
uses: actions/checkout@v4
with:
token: ${{ secrets.POLICYENGINE_GITHUB }}
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
Expand All @@ -35,3 +41,5 @@ jobs:
with:
add: "."
message: Update package version
github_token: ${{ steps.app-token.outputs.token }}
fetch: false
1 change: 1 addition & 0 deletions changelog.d/migrate-to-app-token.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Migrated versioning workflow from expired POLICYENGINE_GITHUB PAT to GitHub App token (APP_ID/APP_PRIVATE_KEY).
Loading