Skip to content

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

Merged
lkdvos merged 1 commit into
mainfrom
format-check-safe-fork-prs
Jul 24, 2026
Merged

Make Format check safe for fork PRs (pull_request trigger)#65
lkdvos merged 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>
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

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

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

@lkdvos
lkdvos merged commit bdcada7 into main Jul 24, 2026
27 checks passed
@lkdvos
lkdvos deleted the format-check-safe-fork-prs branch July 24, 2026 17:35
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