-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.22 KB
/
Copy pathcflite-pr.yml
File metadata and controls
43 lines (39 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: ClusterFuzzLite PR
# Free, in-repo continuous fuzzing of the userspace input-parsing surface.
# Builds the libFuzzer harnesses in the OSS-Fuzz base image and fuzzes only the
# code changed by the PR (mode: code-change), failing the check on a new crash.
# No run: steps and no untrusted event input are used (injection-safe).
on:
pull_request:
paths:
- 'src/**'
- 'tests/fuzz/**'
- '.clusterfuzzlite/**'
- 'CMakeLists.txt'
permissions: read-all
concurrency:
group: cflite-pr-${{ github.ref }}
cancel-in-progress: true
jobs:
PR:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitizer: [address, undefined]
steps:
- name: Build fuzzers (${{ matrix.sanitizer }})
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
with:
language: c++
sanitizer: ${{ matrix.sanitizer }}
- name: Run fuzzers (${{ matrix.sanitizer }})
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 300
mode: 'code-change'
sanitizer: ${{ matrix.sanitizer }}
output-sarif: true