From 4539eca0fdab62c54dc253703059c5dad152f8bb Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Tue, 14 May 2024 09:01:15 -0400 Subject: [PATCH] updating github actions Signed-off-by: Matt Farina --- .github/workflows/codeql.yaml | 6 +++--- .github/workflows/fuzz.yaml | 12 ++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 5796b8d..11936fe 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -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 diff --git a/.github/workflows/fuzz.yaml b/.github/workflows/fuzz.yaml index 696f07c..54b45b9 100644 --- a/.github/workflows/fuzz.yaml +++ b/.github/workflows/fuzz.yaml @@ -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 }} @@ -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 }}