From 204b31924380e021d481d8f2d53194ca14c3597c Mon Sep 17 00:00:00 2001 From: Steven Welch Date: Thu, 27 Aug 2026 22:17:45 -0600 Subject: [PATCH] fix(opentofu): checkout same-repo PR head for docs --- .github/workflows/opentofu.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/opentofu.yml b/.github/workflows/opentofu.yml index 20a96a7..074b86d 100644 --- a/.github/workflows/opentofu.yml +++ b/.github/workflows/opentofu.yml @@ -58,6 +58,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || github.sha }} - name: Fetch canonical pre-commit config id: fetch-config continue-on-error: true