Skip to content

Commit

Permalink
[Fuzzing] add cifuzz (apache#10462)
Browse files Browse the repository at this point in the history
* [Fuzzing] add cifuzz

Signed-off-by: Arjun Singh <[email protected]>

* [Fuzzing] fix i'm stupid

Signed-off-by: Arjun Singh <[email protected]>

* [cifuzz] update pr

Signed-off-by: Arjun Singh <[email protected]>

---------

Signed-off-by: Arjun Singh <[email protected]>
  • Loading branch information
0x34d authored Oct 4, 2023
1 parent 26670be commit cac766d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions tests/fuzzing/oss-fuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cac766d

Please sign in to comment.