diff --git a/.github/workflows/auto-format-apply.yml b/.github/workflows/auto-format-apply.yml index 14f347921a..439c36a284 100644 --- a/.github/workflows/auto-format-apply.yml +++ b/.github/workflows/auto-format-apply.yml @@ -149,6 +149,13 @@ jobs: repository: ${{ steps.pr.outputs.full_name }} ref: ${{ steps.pr.outputs.sha }} persist-credentials: false + # Reviewed opt-in to checkout v7's fork guard: no code from the + # fork tree is ever executed here. The steps below only `git apply` + # the patch from the trusted format artifact and run git + # add/commit/push — no scripts, hooks, or tooling from the + # checked-out tree. Credentials are not persisted; the push uses + # a scoped app token via GIT_ASKPASS. + allow-unsafe-pr-checkout: true - name: Apply patch if: steps.download.outputs.found == 'true' diff --git a/.github/workflows/query-counts-apply.yml b/.github/workflows/query-counts-apply.yml index d781dde516..61d9df7fe4 100644 --- a/.github/workflows/query-counts-apply.yml +++ b/.github/workflows/query-counts-apply.yml @@ -154,6 +154,13 @@ jobs: repository: ${{ steps.pr.outputs.full_name }} ref: ${{ steps.pr.outputs.sha }} persist-credentials: false + # Reviewed opt-in to checkout v7's fork guard: no code from the + # fork tree is ever executed here. The steps below only copy the + # inert snapshot JSONs from the trusted measure artifact and run + # git add/commit/push — no scripts, hooks, or tooling from the + # checked-out tree. Credentials are not persisted; the push uses + # a scoped app token via GIT_ASKPASS. + allow-unsafe-pr-checkout: true - name: Apply snapshots if: steps.download.outputs.found == 'true'