ci: Add GitHub CIFuzz check #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Note that this cannot work with git forks, known CIFuzz limitation | |
| name: CIFuzz | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'ci-fuzzing' | |
| paths-ignore: | |
| - 'docs/**' | |
| jobs: | |
| Fuzzing: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'mbroz/cryptsetup' | |
| steps: | |
| - name: Build Fuzzers | |
| id: build | |
| uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | |
| with: | |
| oss-fuzz-project-name: 'cryptsetup' | |
| dry-run: false | |
| - name: Run Fuzzers | |
| uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | |
| with: | |
| oss-fuzz-project-name: 'cryptsetup' | |
| fuzz-seconds: 120 | |
| dry-run: false | |
| - name: Upload Crash | |
| uses: actions/upload-artifact@v4 | |
| if: failure() && steps.build.outcome == 'success' | |
| with: | |
| name: artifacts | |
| path: ./out/artifacts |