aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2023-09-21 07:01:40 -0400
committerDmitry Vyukov <dvyukov@google.com>2023-09-27 20:29:32 +0000
commitc2ab1e5d6ed3061c614fe816481094bc3bfb5738 (patch)
tree4722e3bf7e7111626a4812794e616a420d1c2397 /.github
parent2895a507993a3da44b9f6db8233af8c6ae197616 (diff)
oss-fuzz.yml: fix compilation error
Fix compilation error and make other improvements: * Only upload crash on run fail, not build fail * Enable SARIF notification. Fixes: https://github.com/google/oss-fuzz/issues/10989
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/oss-fuzz.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/.github/workflows/oss-fuzz.yml b/.github/workflows/oss-fuzz.yml
index 3276b4ae9..cec965a99 100644
--- a/.github/workflows/oss-fuzz.yml
+++ b/.github/workflows/oss-fuzz.yml
@@ -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