| 1 | name: OSS-Fuzz |
| 2 | on: [pull_request] |
| 3 | concurrency: |
| 4 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 5 | cancel-in-progress: true |
| 6 | jobs: |
| 7 | Fuzzing: |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - name: Build Fuzzers |
| 11 | uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master |
| 12 | with: |
| 13 | oss-fuzz-project-name: 'minizip' |
| 14 | dry-run: true |
| 15 | |
| 16 | - name: Run Fuzzers |
| 17 | uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master |
| 18 | with: |
| 19 | oss-fuzz-project-name: 'minizip' |
| 20 | fuzz-seconds: 600 |
| 21 | dry-run: true |
| 22 | |
| 23 | - name: Upload Crash |
| 24 | uses: actions/upload-artifact@v4 |
| 25 | if: failure() |
| 26 | with: |
| 27 | name: artifacts |
| 28 | path: ./out/artifacts |