From 4a4ea309b6ec096c9d534ae2873f9f61eb0f9934 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 9 Dec 2020 21:13:18 +0100 Subject: [PATCH] Add oss-fuzz on PR's Signed-off-by: Julien Pivotto --- .github/workflows/fuzzing.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/fuzzing.yml diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml new file mode 100644 index 0000000000..e79b78967e --- /dev/null +++ b/.github/workflows/fuzzing.yml @@ -0,0 +1,24 @@ +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: 'prometheus' + dry-run: false + - name: Run Fuzzers + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + with: + oss-fuzz-project-name: 'prometheus' + fuzz-seconds: 600 + dry-run: false + - name: Upload Crash + uses: actions/upload-artifact@v1 + if: failure() && steps.build.outcome == 'success' + with: + name: artifacts + path: ./out/artifacts