From 952978015a7fccddb14a43315aacc3fb497ddc21 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Mon, 8 Apr 2024 10:43:05 +0800 Subject: [PATCH] Make sure we are building/testing with latest Go patch release This is better for security and determinism as otherwise the action uses whatever happens to be cached, which might be old. Signed-off-by: Chad Wilson --- .github/workflows/deploy.yml | 1 + .github/workflows/golangci-lint.yml | 1 + .github/workflows/test.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a2bdd1b..c6a048e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: + check-latest: true go-version-file: 'go.mod' - name: build diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index d25ede0..570c7d8 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -15,6 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: + check-latest: true go-version-file: 'go.mod' - name: golangci-lint uses: golangci/golangci-lint-action@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16e815a..9786e0b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: + check-latest: true go-version-file: 'go.mod' - name: Run tests