]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
github action: add CIFuzz
authorLeo Neat <leosneat@gmail.com>
Fri, 21 Feb 2020 00:17:50 +0000 (16:17 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Feb 2020 07:56:44 +0000 (08:56 +0100)
Closes #4960

.github/workflows/fuzz.yml [new file with mode: 0644]

diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
new file mode 100644 (file)
index 0000000..3a2ac23
--- /dev/null
@@ -0,0 +1,24 @@
+name: CIFuzz
+on: [pull_request]
+jobs:
+  Fuzzing:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Build Fuzzers
+      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+      with:
+        oss-fuzz-project-name: 'curl'
+        dry-run: true
+    - name: Run Fuzzers
+      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+      with:
+        oss-fuzz-project-name: 'curl'
+        fuzz-seconds: 600
+        dry-run: true
+    - name: Upload Crash
+      uses: actions/upload-artifact@v1
+      if: failure()
+      with:
+        name: artifacts
+        path: ./out/artifacts
+