Skip to content

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

Merged
VictorVanthilt merged 1 commit into
masterfrom
format-check-safe-fork-prs
Jul 27, 2026
Merged

Make Format check safe for fork PRs (pull_request trigger)#201
VictorVanthilt merged 1 commit into
masterfrom
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>
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@VictorVanthilt
VictorVanthilt merged commit 67e7956 into master Jul 27, 2026
27 of 29 checks passed
@VictorVanthilt
VictorVanthilt deleted the format-check-safe-fork-prs branch July 27, 2026 09:26
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.

2 participants