From c2ab1e5d6ed3061c614fe816481094bc3bfb5738 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Thu, 21 Sep 2023 07:01:40 -0400 Subject: 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 --- .github/workflows/oss-fuzz.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to '.github') 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 -- cgit mrf-deployment