Skip to content

Commit

Permalink
Merge pull request #235 from mattfarina/update-actions
Browse files Browse the repository at this point in the history
updating github actions
  • Loading branch information
mattfarina committed May 14, 2024
2 parents 7a8e81a + 4539eca commit 3d240d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: go

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
12 changes: 8 additions & 4 deletions .github/workflows/fuzz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
# There are no dependencies so there is no go.sum file. This is needed
# for the cache key generation. So, caching doesn't happen and a
# warning is presented on each run. Disabling the Go cache and caching
# the go-build cache separately for fuzzing.
cache: false
go-version: "1.22"
# The cache path may be different on different runners. GitHub may change
# this in the future. So, we dynamically fetch it.
- name: Get Go Cache Paths
id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
run: echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v4
- name: Restore Cache
id: cache-restore
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ env.cache-key }}
Expand All @@ -43,7 +47,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Saving the cache so that Fuzz testing can be additive to previous fuzz testing.
- name: Save Cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ env.cache-key }}

0 comments on commit 3d240d7

Please sign in to comment.