From d9399f31a40af1067a364370b023588653632678 Mon Sep 17 00:00:00 2001 From: chansuke Date: Tue, 29 Oct 2024 00:19:11 +0900 Subject: [PATCH] Add checked out ref for `actions/checkout@v4` --- .github/workflows/golangci-lint.yml | 2 ++ .github/workflows/misspell.yml | 2 ++ .github/workflows/release.yml | 1 + .github/workflows/tests.yml | 2 ++ 4 files changed, 7 insertions(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ffb6e32..da5a3d0 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: Build source code run: go build ./... diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml index 7cffdd5..75c7307 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 ea181fd..3fc3ad8 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 f75dd72..e3ebe04 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 ./...