Files
Sergey Bronnikov 8d2892af68 Add CIFuzz GitHub Actions workflow (#1555)
Fuzzing tests for Unbound are available in the OSS Fuzz
repository, and this workflow will help prevent regressions and
break OSS builds [1][2][3]. The workflow run the OSS-Fuzz fuzzers
for Unbound on pull requests using the official CIFuzz actions [4].
The fuzzers are built from the OSS-Fuzz project and executed for 300
seconds; crashing inputs are uploaded as workflow artifacts.

- The CIFuzz documentation [4] recommends fuzzing for at least 600
  seconds. 300 seconds is used to keep pull request runs short;
  increase `fuzz-seconds` if more coverage is needed.
- The build is driven by projects/unbound/build.sh [5] in
  google/oss-fuzz.

Follows up #1554

1. https://github.com/google/oss-fuzz/pull/16562
2. https://github.com/google/oss-fuzz/pull/10200
3. https://github.com/google/oss-fuzz/pull/11057
4. https://google.github.io/oss-fuzz/getting-started/continuous-integration/
5. https://github.com/google/oss-fuzz/blob/master/projects/unbound/build.sh
2026-11-17 15:48:22 +01:00

32 lines
718 B
YAML

name: CIFuzz
on:
pull_request:
branches: [ master ]
permissions: {}
jobs:
Fuzzing:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'unbound'
language: c
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'unbound'
language: c
fuzz-seconds: 300
- name: Upload Crash
uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts