name: CIFuzz on: push: branches: - main permissions: {} jobs: Fuzzing: runs-on: ubuntu-latest permissions: security-events: write steps: - name: Build Fuzzers id: build uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@5acb10b65c2265d3c20d7152478c44a214088221 # master with: oss-fuzz-project-name: {{ project_name }} language: {{ language }} - name: Run Fuzzers uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@5acb10b65c2265d3c20d7152478c44a214088221 # master with: oss-fuzz-project-name: {{ project_name }} language: {{ language }} fuzz-seconds: 600 output-sarif: true - name: Upload Crash uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 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@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2 with: # Path to SARIF file relative to the root of the repository sarif_file: cifuzz-sarif/results.sarif checkout_path: cifuzz-sarif