Skip to content

Commit 79cf213

Browse files
committed
ci: update Go version and GitHub Actions dependencies
Update CI workflows to use more flexible Go version handling and newer action versions: - Use 'go.mod' for Go version in diff.yml to automatically match project requirements instead of hardcoded 1.18 - Upgrade actions/upload-artifact from v3 to v4 in fuzz.yml - Upgrade github/codeql-action from v2 to v3 in fuzz.yml These changes ensure the CI pipeline uses the same Go version as specified in the project and benefits from the latest improvements in GitHub Actions. Signed-off-by: Ville Vesilehto <[email protected]>
1 parent 867dca6 commit 79cf213

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/diff.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
bench:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Setup Go 1.18
11+
- name: Setup Go
1212
uses: actions/setup-go@v4
1313
with:
14-
go-version: 1.18
14+
go-version-file: 'go.mod'
1515
- name: Install benchstat
1616
run: go install golang.org/x/perf/cmd/benchstat@latest
1717

.github/workflows/fuzz.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
fuzz-seconds: 600
2222
output-sarif: true
2323
- name: Upload Crash
24-
uses: actions/upload-artifact@v3
24+
uses: actions/upload-artifact@v4
2525
if: failure() && steps.build.outcome == 'success'
2626
with:
2727
name: artifacts
2828
path: ./out/artifacts
2929
- name: Upload Sarif
3030
if: always() && steps.build.outcome == 'success'
31-
uses: github/codeql-action/upload-sarif@v2
31+
uses: github/codeql-action/upload-sarif@v3
3232
with:
3333
# Path to SARIF file relative to the root of the repository
3434
sarif_file: cifuzz-sarif/results.sarif

0 commit comments

Comments
 (0)