File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ jobs:
20
20
uses : actions/checkout@v4
21
21
22
22
- name : Initialize CodeQL
23
- uses : github/codeql-action/init@v2
23
+ uses : github/codeql-action/init@v3
24
24
with :
25
25
languages : go
26
26
27
27
- name : Autobuild
28
- uses : github/codeql-action/autobuild@v2
28
+ uses : github/codeql-action/autobuild@v3
29
29
30
30
- name : Perform CodeQL Analysis
31
- uses : github/codeql-action/analyze@v2
31
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change @@ -15,18 +15,22 @@ jobs:
15
15
- name : Install Go
16
16
uses : actions/setup-go@v5
17
17
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
18
23
go-version : " 1.22"
19
24
# The cache path may be different on different runners. GitHub may change
20
25
# this in the future. So, we dynamically fetch it.
21
26
- name : Get Go Cache Paths
22
27
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
25
29
- name : Checkout code
26
30
uses : actions/checkout@v4
27
31
- name : Restore Cache
28
32
id : cache-restore
29
- uses : actions/cache/restore@v3
33
+ uses : actions/cache/restore@v4
30
34
with :
31
35
path : ${{ steps.go-cache-paths.outputs.go-build }}
32
36
key : ${{ env.cache-key }}
43
47
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
48
# Saving the cache so that Fuzz testing can be additive to previous fuzz testing.
45
49
- name : Save Cache
46
- uses : actions/cache/save@v3
50
+ uses : actions/cache/save@v4
47
51
with :
48
52
path : ${{ steps.go-cache-paths.outputs.go-build }}
49
53
key : ${{ env.cache-key }}
You can’t perform that action at this time.
0 commit comments