mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Add CI for fuzzing (#7462)
This commit is contained in:
parent
499c794f48
commit
e0e3d4c55b
1 changed files with 28 additions and 0 deletions
28
.github/workflows/cifuzz.yml
vendored
Normal file
28
.github/workflows/cifuzz.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: CIFuzz
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
Fuzzing:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
sanitizer: [address]
|
||||
steps:
|
||||
- name: Build Fuzzers - ${{ matrix.sanitizer }}
|
||||
id: build
|
||||
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
||||
with:
|
||||
oss-fuzz-project-name: 'ntopng'
|
||||
sanitizer: ${{ matrix.sanitizer }}
|
||||
- name: Run Fuzzers - ${{ matrix.sanitizer }}
|
||||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
||||
with:
|
||||
oss-fuzz-project-name: 'ntopng'
|
||||
sanitizer: ${{ matrix.sanitizer }}
|
||||
fuzz-seconds: 1200
|
||||
- name: Upload Crash
|
||||
uses: actions/upload-artifact@v3
|
||||
if: failure() && steps.build.outcome == 'success'
|
||||
with:
|
||||
name: ${{ matrix.sanitizer }}-artifacts
|
||||
path: ./out/artifacts
|
||||
Loading…
Add table
Add a link
Reference in a new issue