name: Fuzz
on:
pull_request:
paths:
- "src/**"
- "fuzz/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/fuzz.yml"
merge_group: {}
workflow_dispatch:
permissions:
contents: read
concurrency:
group: fuzz-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
fuzz-smoke:
name: Fuzz smoke
if: ${{ !startsWith(github.head_ref, 'release-please') }}
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a with:
egress-policy: audit
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with:
persist-credentials: false
- uses: ./.github/actions/setup-rust
with:
toolchain: nightly
- name: Install cargo-fuzz
run: cargo install cargo-fuzz --version 0.13.2 --locked
- name: Build and run the repair fuzzer
run: |
cargo +nightly fuzz build
cargo +nightly fuzz run repair_json -- -max_total_time=20