Skip to content

Commit

Permalink
Make sure we are building/testing with latest Go patch release
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
chadlwilson committed Apr 8, 2024
1 parent adbb5f8 commit 9529780
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9529780

Please sign in to comment.