This is an automated email from the ASF dual-hosted git repository.

kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new cac766d434 [Fuzzing] add cifuzz (#10462)
cac766d434 is described below

commit cac766d434ba8ee3dd310453f42f2e34cd16ec45
Author: Arjun <36335769+0x...@users.noreply.github.com>
AuthorDate: Wed Oct 4 23:57:25 2023 +0530

    [Fuzzing] add cifuzz (#10462)
    
    * [Fuzzing] add cifuzz
    
    Signed-off-by: Arjun Singh <ajsinghyada...@gmail.com>
    
    * [Fuzzing] fix i'm stupid
    
    Signed-off-by: Arjun Singh <ajsinghyada...@gmail.com>
    
    * [cifuzz] update pr
    
    Signed-off-by: Arjun Singh <ajsinghyada...@gmail.com>
    
    ---------
    
    Signed-off-by: Arjun Singh <ajsinghyada...@gmail.com>
---
 .github/workflows/cifuzz.yml | 38 ++++++++++++++++++++++++++++++++++++++
 tests/fuzzing/oss-fuzz.sh    |  4 ++--
 2 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml
new file mode 100644
index 0000000000..9e906cbd1b
--- /dev/null
+++ b/.github/workflows/cifuzz.yml
@@ -0,0 +1,38 @@
+name: CIFuzz
+on:
+  schedule:
+    - cron: '0 0 * * 0'
+permissions: {}
+jobs:
+  Fuzzing:
+    runs-on: ubuntu-latest
+    permissions:
+      security-events: write
+    steps:
+    - name: Build Fuzzers
+      id: build
+      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+      with:
+        oss-fuzz-project-name: 'trafficserver'
+        language: c++
+    - name: Run Fuzzers
+      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+      with:
+        oss-fuzz-project-name: 'trafficserver'
+        language: c++
+        fuzz-seconds: 300
+        output-sarif: true
+    - name: Upload Crash
+      uses: actions/upload-artifact@v3
+      if: failure() && steps.build.outcome == 'success'
+      with:
+        name: artifacts
+        path: ./out/artifacts
+    - name: Upload Sarif
+      if: always() && steps.build.outcome == 'success'
+      uses: github/codeql-action/upload-sarif@v2
+      with:
+      # Path to SARIF file relative to the root of the repository
+        sarif_file: cifuzz-sarif/results.sarif
+        checkout_path: cifuzz-sarif
+        category: CIFuzz
diff --git a/tests/fuzzing/oss-fuzz.sh b/tests/fuzzing/oss-fuzz.sh
index ac4640cde1..2fcac3704c 100644
--- a/tests/fuzzing/oss-fuzz.sh
+++ b/tests/fuzzing/oss-fuzz.sh
@@ -39,6 +39,6 @@ cp $SRC/trafficserver/tests/fuzzing/*.zip  $OUT/
 
 if [[ $SANITIZER = undefined ]]
 then
-    rm $OUT/fuzz_http
-    rm $OUT/fuzz_hpack
+    rm -f $OUT/fuzz_http
+    rm -f $OUT/fuzz_hpack
 fi

Reply via email to