From c103061d1b715bef0e7c4e5b36d6d37ad7d41fe1 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Fri, 24 Jul 2026 10:52:15 -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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index 562307b..09479db 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -1,14 +1,12 @@ 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: runic: