diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 0e81b48..778759b 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,6 +23,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: golangci-lint uses: golangci/golangci-lint-action@v6 diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml index adfcc1f..dd78a83 100644 --- a/.github/workflows/misspell.yml +++ b/.github/workflows/misspell.yml @@ -23,6 +23,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Spellcheck run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0dc872f..cfd4e85 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go uses: actions/setup-go@v5 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a68420d..dd9cc08 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,6 +23,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Build run: go build ./...