Skip to content

Commit 6e39974

Browse files
committed
fix(cifuzz): address Copilot review — checkout, permissions, Go sanitizer, SARIF always
1 parent 15b8dfc commit 6e39974

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/cifuzz.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,38 @@ on:
66
- '.github/workflows/cifuzz.yml'
77
push:
88
branches: [main, master]
9+
910
permissions:
1011
contents: read
12+
security-events: write
13+
1114
jobs:
1215
fuzzing:
1316
runs-on: ubuntu-latest
1417
strategy:
1518
fail-fast: false
1619
matrix:
17-
sanitizer: [address, memory]
20+
sanitizer: [address]
1821
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1923
- name: Build Fuzzers (${{ matrix.sanitizer }})
2024
id: build
21-
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@ba0e2e0 # v1.0.0
25+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@ba0e2e0399a10b7b42afb16e7a6c4ccd3ff52431
2226
with:
2327
oss-fuzz-project-name: 'golang-jwt'
2428
language: go
2529
sanitizer: ${{ matrix.sanitizer }}
2630
- name: Run Fuzzers (${{ matrix.sanitizer }})
27-
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@ba0e2e0 # v1.0.0
31+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@ba0e2e0399a10b7b42afb16e7a6c4ccd3ff52431
2832
with:
2933
oss-fuzz-project-name: 'golang-jwt'
3034
language: go
3135
fuzz-seconds: 300
3236
sanitizer: ${{ matrix.sanitizer }}
3337
output-sarif: true
3438
- name: Upload Sarif
35-
if: steps.build.outcome == 'success'
36-
uses: github/codeql-action/upload-sarif@601d5b1 # v3.28.15
39+
if: always() && steps.build.outcome == 'success'
40+
uses: github/codeql-action/upload-sarif@601d5b1bcb3e5ef5eea97a6d0dcdbbb8c2b80116
3741
with:
3842
sarif_file: cifuzz-sarif/results.sarif
3943
category: fuzz-${{ matrix.sanitizer }}

0 commit comments

Comments
 (0)