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 99596dc commit 4b16407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-on-pr-merge.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: build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version-file: 'go.mod'

- name: Install pkg-config on ${{ matrix.os }}
Expand Down

0 comments on commit 4b16407

Please sign in to comment.