Skip to content

Commit ff4c305

Browse files
authored
Merge pull request #1448 from PolicyEngine/fix/versioning-push-auth
Pass GitHub App token to add-and-commit for branch protection
2 parents 6b45276 + dbf9bc3 commit ff4c305

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/update-versioning.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ jobs:
2525
app-id: ${{ secrets.APP_ID }}
2626
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2727
- name: Checkout repo
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
30-
repository: ${{ github.event.pull_request.head.repo.full_name }}
31-
ref: ${{ github.event.pull_request.head.ref }}
30+
ref: main
3231
token: ${{ steps.app-token.outputs.token }}
3332
- name: Setup Python
3433
uses: actions/setup-python@v2
@@ -44,4 +43,5 @@ jobs:
4443
add: "."
4544
committer_name: Github Actions[bot]
4645
author_name: Github Actions[bot]
47-
message: Update PolicyEngine Household API
46+
message: Update PolicyEngine Household API
47+
github_token: ${{ steps.app-token.outputs.token }}

changelog_entry.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
- bump: patch
22
changes:
33
fixed:
4-
- Switch versioning workflow from PAT to GitHub App token for authentication
4+
- Pass GitHub App token to EndBug/add-and-commit to allow pushing to protected main branch

0 commit comments

Comments
 (0)