diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8d70d4d4..af313c7c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref || github.ref_name }} + ref: ${{ github.event.pull_request.head.sha || github.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} fetch-depth: 1 - name: "Fail on type: ignore (no suppressions allowed)"