From 58c388ea48ee6ae84b4066681614ae43b57507b0 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Fri, 24 Jul 2026 10:53:06 -0400 Subject: [PATCH] Make Format check safe for fork PRs 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) --- .github/workflows/FormatCheck.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index 9b9ea9ac..de1cdad7 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -1,15 +1,13 @@ name: 'Format' on: - pull_request_target: + pull_request: paths: ['**/*.jl'] types: [opened, synchronize, reopened, ready_for_review] permissions: contents: read - actions: write - pull-requests: write jobs: formatcheck: - uses: "QuantumKitHub/QuantumKitHubActions/.github/workflows/FormatCheck.yml@main" \ No newline at end of file + uses: "QuantumKitHub/QuantumKitHubActions/.github/workflows/FormatCheck.yml@main"