From ad3b2935986ed50b0a009fb417536a9eceb51d90 Mon Sep 17 00:00:00 2001 From: David Korczynski Date: Sun, 20 Nov 2022 12:26:33 -0800 Subject: [PATCH 1/2] Add CIFuzz Github action Signed-off-by: David Korczynski --- .github/workflows/cifuzz.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cifuzz.yml diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml new file mode 100644 index 00000000..49b22291 --- /dev/null +++ b/.github/workflows/cifuzz.yml @@ -0,0 +1,26 @@ +name: CIFuzz +on: [pull_request] +jobs: + Fuzzing: + runs-on: ubuntu-latest + steps: + - name: Build Fuzzers + id: build + uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master + with: + oss-fuzz-project-name: 'textwrap' + dry-run: false + language: rust + - name: Run Fuzzers + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + with: + oss-fuzz-project-name: 'textwrap' + fuzz-seconds: 300 + dry-run: false + language: rust + - name: Upload Crash + uses: actions/upload-artifact@v3 + if: failure() && steps.build.outcome == 'success' + with: + name: artifacts + path: ./out/artifacts From 90b4e1f2273f1db5b83b2bf14da940ad1340478a Mon Sep 17 00:00:00 2001 From: David Korczynski Date: Sat, 26 Nov 2022 15:14:35 -0800 Subject: [PATCH 2/2] Remove dry-run from CIFuzz action Signed-off-by: David Korczynski --- .github/workflows/cifuzz.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 49b22291..e57c0b13 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -9,14 +9,12 @@ jobs: uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master with: oss-fuzz-project-name: 'textwrap' - dry-run: false language: rust - name: Run Fuzzers uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master with: oss-fuzz-project-name: 'textwrap' fuzz-seconds: 300 - dry-run: false language: rust - name: Upload Crash uses: actions/upload-artifact@v3