Skip to content

Commit

Permalink
Reference workflow actions by SHA (#141)
Browse files Browse the repository at this point in the history
This solves #139 by referencing actions by sha rather than directly by version.

We also update all of the actions we use at the same time.
  • Loading branch information
JacobOaks committed Dec 12, 2023
1 parent c4e4c01 commit 4d375cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Expand Up @@ -23,15 +23,15 @@ jobs:

steps:
- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go }}

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0

- name: Load cached dependencies
uses: actions/cache@v1
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v.3.3.2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -46,4 +46,4 @@ jobs:
run: make cover

- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1

0 comments on commit 4d375cc

Please sign in to comment.