Skip to content

Commit

Permalink
oss-fuzz.yml: fix compilation error
Browse files Browse the repository at this point in the history
Fix compilation error and make other improvements:
* Only upload crash on run fail, not build fail
* Enable SARIF notification.
Fixes: google/oss-fuzz#10989
  • Loading branch information
jonathanmetzman authored and dvyukov committed Sep 27, 2023
1 parent 2895a50 commit c2ab1e5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/oss-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,24 @@ jobs:
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'syzkaller'
dry-run: false
language: go
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'syzkaller'
fuzz-seconds: 300
dry-run: false
language: go
output-sarif: true
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure()
uses: actions/upload-artifact@v3
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts
- name: Upload Sarif
if: always() && steps.build.outcome == 'success'
uses: github/codeql-action/upload-sarif@v2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: cifuzz-sarif/results.sarif
checkout_path: cifuzz-sarif

0 comments on commit c2ab1e5

Please sign in to comment.