Skip to content

Commit e912dd9

Browse files
lkdvosclaude
andauthored
Make Format check safe for fork PRs (#260)
Switch the trigger from pull_request_target to pull_request and drop the write permissions. GitHub now refuses to check out fork PR code from a pull_request_target workflow, breaking formatting checks for external contributors. See QuantumKitHub/.github#2. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bffe737 commit e912dd9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/FormatCheck.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: 'Format'
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
paths: ['**/*.jl']
66
types: [opened, synchronize, reopened, ready_for_review]
77

88
permissions:
99
contents: read
10-
actions: write
11-
pull-requests: write
1210

1311
jobs:
1412
formatcheck:

0 commit comments

Comments
 (0)