Commit f6689ba621d18a446ea2162079d9c84be246d310
1 parent
46c43ee8
Adjust fuzzing to run on main branch only
Showing
1 changed file
with
28 additions
and
25 deletions
.github/workflows/cifuzz.yml renamed to .github/workflows/fuzzing.yml
| 1 | -name: CIFuzz | |
| 2 | -on: [pull_request] | |
| 1 | +name: Fuzzing | |
| 2 | +on: | |
| 3 | + push: | |
| 4 | + branches: ["master"] | |
| 5 | + | |
| 3 | 6 | jobs: |
| 4 | - Fuzzing: | |
| 5 | - runs-on: ubuntu-latest | |
| 6 | - steps: | |
| 7 | - - name: Build Fuzzers | |
| 8 | - id: build | |
| 9 | - uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | |
| 10 | - with: | |
| 11 | - oss-fuzz-project-name: 'libmodbus' | |
| 12 | - dry-run: false | |
| 13 | - language: c | |
| 14 | - - name: Run Fuzzers | |
| 15 | - uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | |
| 16 | - with: | |
| 17 | - oss-fuzz-project-name: 'libmodbus' | |
| 18 | - fuzz-seconds: 300 | |
| 19 | - dry-run: false | |
| 20 | - language: c | |
| 21 | - - name: Upload Crash | |
| 22 | - uses: actions/upload-artifact@v3 | |
| 23 | - if: failure() && steps.build.outcome == 'success' | |
| 24 | - with: | |
| 25 | - name: artifacts | |
| 26 | - path: ./out/artifacts | |
| 7 | + fuzzing: | |
| 8 | + runs-on: ubuntu-latest | |
| 9 | + steps: | |
| 10 | + - name: Build Fuzzers | |
| 11 | + id: build | |
| 12 | + uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | |
| 13 | + with: | |
| 14 | + oss-fuzz-project-name: "libmodbus" | |
| 15 | + dry-run: false | |
| 16 | + language: c | |
| 17 | + - name: Run Fuzzers | |
| 18 | + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | |
| 19 | + with: | |
| 20 | + oss-fuzz-project-name: "libmodbus" | |
| 21 | + fuzz-seconds: 300 | |
| 22 | + dry-run: false | |
| 23 | + language: c | |
| 24 | + - name: Upload artifacts | |
| 25 | + uses: actions/upload-artifact@v3 | |
| 26 | + if: failure() && steps.build.outcome == 'success' | |
| 27 | + with: | |
| 28 | + name: artifacts | |
| 29 | + path: ./out/artifacts | ... | ... |