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