Skip to content

Commit 4539eca

Browse files
committed
updating github actions
Signed-off-by: Matt Farina <matt@mattfarina.com>
1 parent 7a8e81a commit 4539eca

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/codeql.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Initialize CodeQL
23-
uses: github/codeql-action/init@v2
23+
uses: github/codeql-action/init@v3
2424
with:
2525
languages: go
2626

2727
- name: Autobuild
28-
uses: github/codeql-action/autobuild@v2
28+
uses: github/codeql-action/autobuild@v3
2929

3030
- name: Perform CodeQL Analysis
31-
uses: github/codeql-action/analyze@v2
31+
uses: github/codeql-action/analyze@v3

.github/workflows/fuzz.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,22 @@ jobs:
1515
- name: Install Go
1616
uses: actions/setup-go@v5
1717
with:
18+
# There are no dependencies so there is no go.sum file. This is needed
19+
# for the cache key generation. So, caching doesn't happen and a
20+
# warning is presented on each run. Disabling the Go cache and caching
21+
# the go-build cache separately for fuzzing.
22+
cache: false
1823
go-version: "1.22"
1924
# The cache path may be different on different runners. GitHub may change
2025
# this in the future. So, we dynamically fetch it.
2126
- name: Get Go Cache Paths
2227
id: go-cache-paths
23-
run: |
24-
echo "::set-output name=go-build::$(go env GOCACHE)"
28+
run: echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
2529
- name: Checkout code
2630
uses: actions/checkout@v4
2731
- name: Restore Cache
2832
id: cache-restore
29-
uses: actions/cache/restore@v3
33+
uses: actions/cache/restore@v4
3034
with:
3135
path: ${{ steps.go-cache-paths.outputs.go-build }}
3236
key: ${{ env.cache-key }}
@@ -43,7 +47,7 @@ jobs:
4347
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4448
# Saving the cache so that Fuzz testing can be additive to previous fuzz testing.
4549
- name: Save Cache
46-
uses: actions/cache/save@v3
50+
uses: actions/cache/save@v4
4751
with:
4852
path: ${{ steps.go-cache-paths.outputs.go-build }}
4953
key: ${{ env.cache-key }}

0 commit comments

Comments
 (0)