Skip to content

Commit 5241e90

Browse files
hua7450claude
andcommitted
Pass GitHub App token to add-and-commit for protected branch push
The EndBug/add-and-commit action defaults to GITHUB_TOKEN which lacks permission to push directly to the protected main branch. Pass the GitHub App installation token via github_token parameter. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6b45276 commit 5241e90

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/update-versioning.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ jobs:
4444
add: "."
4545
committer_name: Github Actions[bot]
4646
author_name: Github Actions[bot]
47-
message: Update PolicyEngine Household API
47+
message: Update PolicyEngine Household API
48+
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)