| 1 |
name: CIFuzz |
| 2 |
on: [pull_request] |
| 3 |
|
| 4 |
permissions: |
| 5 |
contents: read |
| 6 |
|
| 7 |
jobs: |
| 8 |
Fuzzing: |
| 9 |
runs-on: ubuntu-latest |
| 10 |
steps: |
| 11 |
- name: Harden Runner |
| 12 |
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf |
| 13 |
with: |
| 14 |
egress-policy: audit |
| 15 |
|
| 16 |
- name: Build Fuzzers |
| 17 |
id: build |
| 18 |
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@57fe4475324c5506adbfecdcdd2917f65c86ee9e |
| 19 |
with: |
| 20 |
oss-fuzz-project-name: 'json' |
| 21 |
dry-run: false |
| 22 |
language: c++ |
| 23 |
- name: Run Fuzzers |
| 24 |
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@57fe4475324c5506adbfecdcdd2917f65c86ee9e |
| 25 |
with: |
| 26 |
oss-fuzz-project-name: 'json' |
| 27 |
fuzz-seconds: 300 |
| 28 |
dry-run: false |
| 29 |
language: c++ |
| 30 |
- name: Upload Crash |
| 31 |
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 |
| 32 |
if: failure() && steps.build.outcome == 'success' |
| 33 |
with: |
| 34 |
name: artifacts |
| 35 |
path: ./out/artifacts |