Skip to content

Make Format check safe for fork PRs (pull_request trigger)#491

Open
lkdvos wants to merge 1 commit into
mainfrom
format-check-safe-fork-prs
Open

Make Format check safe for fork PRs (pull_request trigger)#491
lkdvos wants to merge 1 commit into
mainfrom
format-check-safe-fork-prs

Conversation

@lkdvos

@lkdvos lkdvos commented Jul 24, 2026

Copy link
Copy Markdown
Member

Switches the Format workflow trigger from pull_request_target to
pull_request and drops the actions: write / pull-requests: write
permissions.

GitHub now refuses to check out fork PR code from a pull_request_target
workflow, which broke the formatting check for all external contributors
(PRs from forks). The reusable workflow has been reworked to run safely under a
read-only pull_request context and reports the formatting diff in the job
summary instead of commenting on the PR.

Depends on QuantumKitHub/QuantumKitHubActions#2 (the reusable workflow update),
which should be merged first since this references FormatCheck.yml@main.

Refs QuantumKitHub/.github#2

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant