Skip to content

Commit ae5cf31

Browse files
committed
Update CIFuzz GitHub action
1 parent 0cbddb6 commit ae5cf31

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,36 @@ on:
1616
paths:
1717
- '**.c'
1818
- '**.h'
19+
permissions: {}
1920
jobs:
2021
Fuzzing:
2122
runs-on: ubuntu-latest
23+
permissions:
24+
security-events: write
2225
steps:
2326
- name: Build Fuzzers
2427
id: build
2528
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
2629
with:
2730
oss-fuzz-project-name: 'sudoers'
28-
dry-run: false
31+
language: c
2932
- name: Run Fuzzers
3033
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
3134
with:
3235
oss-fuzz-project-name: 'sudoers'
36+
language: c
3337
fuzz-seconds: 600
34-
dry-run: false
38+
output-sarif: true
3539
- name: Upload Crash
36-
uses: actions/upload-artifact@v1
40+
uses: actions/upload-artifact@v3
3741
if: failure() && steps.build.outcome == 'success'
3842
with:
3943
name: artifacts
4044
path: ./out/artifacts
45+
- name: Upload Sarif
46+
if: always() && steps.build.outcome == 'success'
47+
uses: github/codeql-action/upload-sarif@v2
48+
with:
49+
# Path to SARIF file relative to the root of the repository
50+
sarif_file: cifuzz-sarif/results.sarif
51+
checkout_path: cifuzz-sarif

0 commit comments

Comments
 (0)