Skip to content

Commit 402412b

Browse files
committed
build: update cifuzz workflow
- Update actions to their latest versions. - Use SHA to (potentially) allow enabling Dependabot. - Move caching responsibility to `actions/setup-go` (supported since >=v3). Signed-off-by: Hidde Beydals <[email protected]>
1 parent 82dc24c commit 402412b

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/cifuzz.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,14 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
2020
- name: Setup Go
21-
uses: actions/setup-go@v3
21+
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
2222
with:
2323
go-version: 1.20.x
24-
- id: go-env
25-
run: |
26-
echo "go-mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
27-
- name: Restore Go cache
28-
uses: actions/cache@v3
29-
with:
30-
path: ${{ steps.go-env.outputs.go-mod-cache }}
31-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32-
restore-keys: |
33-
${{ runner.os }}-go
24+
cache-dependency-path: |
25+
**/go.sum
26+
**/go.mod
3427
- name: Smoke test Fuzzers
3528
run: make fuzz-smoketest
3629
env:

0 commit comments

Comments
 (0)