Skip to content

Commit 15b8dfc

Browse files
committed
fix: address CodeRabbit review — pin actions, narrow paths, add memory sanitizer
1 parent 2ea2a80 commit 15b8dfc

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/cifuzz.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: CIFuzz
22
on:
33
pull_request:
44
paths:
5-
- '**'
5+
- '**.go'
6+
- '.github/workflows/cifuzz.yml'
67
push:
78
branches: [main, master]
89
permissions:
@@ -13,26 +14,26 @@ jobs:
1314
strategy:
1415
fail-fast: false
1516
matrix:
16-
sanitizer: [address]
17+
sanitizer: [address, memory]
1718
steps:
1819
- name: Build Fuzzers (${{ matrix.sanitizer }})
1920
id: build
20-
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
21+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@ba0e2e0 # v1.0.0
2122
with:
22-
oss-fuzz-project-name: 'vault'
23+
oss-fuzz-project-name: 'golang-jwt'
2324
language: go
2425
sanitizer: ${{ matrix.sanitizer }}
2526
- name: Run Fuzzers (${{ matrix.sanitizer }})
26-
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
27+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@ba0e2e0 # v1.0.0
2728
with:
28-
oss-fuzz-project-name: 'vault'
29+
oss-fuzz-project-name: 'golang-jwt'
2930
language: go
3031
fuzz-seconds: 300
3132
sanitizer: ${{ matrix.sanitizer }}
3233
output-sarif: true
3334
- name: Upload Sarif
34-
if: always() && steps.build.outcome == 'success'
35-
uses: github/codeql-action/upload-sarif@v3
35+
if: steps.build.outcome == 'success'
36+
uses: github/codeql-action/upload-sarif@601d5b1 # v3.28.15
3637
with:
3738
sarif_file: cifuzz-sarif/results.sarif
3839
category: fuzz-${{ matrix.sanitizer }}

0 commit comments

Comments
 (0)