Skip to content

Commit b3bcb59

Browse files
ChrisRackauckas-ClaudeclaudeChrisRackauckas
authored
Fix format-pr workflow permissions for creating PRs (#52)
Add explicit contents:write and pull-requests:write permissions to the format-pr workflow job. The default GITHUB_TOKEN now has read-only permissions, causing the peter-evans/create-pull-request action to fail with a 403 when pushing the formatting branch. Co-authored-by: ChrisRackauckas-Claude <noreply@anthropic.com> Co-authored-by: Chris Rackauckas <accounts@chrisrackauckas.com>
1 parent 2a10079 commit b3bcb59

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/FormatPR.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
pull-requests: write
811
steps:
912
- uses: actions/checkout@v4
1013
- name: Install JuliaFormatter and format

0 commit comments

Comments
 (0)