Debian Codegraph @

.github/workflows/ci-fuzz.yml

raw
1 name: Fuzz Test
2 on:
3 pull_request:
4 paths:
5 - '**.c'
6 - '**.h'
7 jobs:
8 Fuzzing:
9 runs-on: ubuntu-latest
10 permissions:
11 security-events: write
12 steps:
13 - name: Build Fuzzers
14 id: build
15 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
16 with:
17 oss-fuzz-project-name: 'md4c'
18 language: c
19 - name: Run Fuzzers
20 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
21 with:
22 oss-fuzz-project-name: 'md4c'
23 fuzz-seconds: 600
24 output-sarif: true
25 - name: Upload Crash
26 uses: actions/upload-artifact@v7
27 if: failure() && steps.build.outcome == 'success'
28 with:
29 name: artifacts
30 path: ./out/artifacts
31 - name: Upload Sarif
32 if: always() && steps.build.outcome == 'success'
33 uses: github/codeql-action/upload-sarif@v2
34 with:
35 # Path to SARIF file relative to the root of the repository
36 sarif_file: cifuzz-sarif/results.sarif
37 checkout_path: cifuzz-sarif