From fbbaeb864a3f25096551ca56777d9a03e147823e Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Sun, 22 Nov 2026 15:14:33 +0000 Subject: [PATCH] fix(ci): initialize trusted checkout for fork previews Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .github/workflows/preview-fork-deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/preview-fork-deploy.yml b/.github/workflows/preview-fork-deploy.yml index a1c0f730..d8a7099b 100644 --- a/.github/workflows/preview-fork-deploy.yml +++ b/.github/workflows/preview-fork-deploy.yml @@ -28,6 +28,12 @@ jobs: group: documentation-preview-${{ github.event.workflow_run.pull_requests[0].number }} cancel-in-progress: false steps: + - name: Checkout trusted default branch (never fork head) + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.repository.default_branch }} + persist-credentials: false + - name: Download validated preview HTML uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: