ci: add CIFuzz (#1225)

Add OSS-Fuzz CIFuzz workflow to run fuzzers on PRs for project 'cli11'.

---------

Co-authored-by: TheodorNEngoy <[email protected]>
This commit is contained in:
Theodor Nesfeldt Engøy
2025-10-18 19:48:36 +02:00
committed by GitHub
parent 16a2840b4e
commit 0c4cd5f079

31
.github/workflows/cifuzz.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: CIFuzz
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
fuzz:
runs-on: ubuntu-latest
# keep CI green while OSS-Fuzz project is not merged yet
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Build Fuzzers (dry run)
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: cli11
language: c++
dry-run: true
- name: Run Fuzzers (dry run)
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: cli11
language: c++
fuzz-seconds: 600
dry-run: true