Skip to content

Commit ba93c13

Browse files
authored
Create cflite_pr.yml
1 parent e9fbeb3 commit ba93c13

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/cflite_pr.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: ClusterFuzzLite PR fuzzing
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
permissions: read-all
7+
jobs:
8+
PR:
9+
runs-on: ubuntu-latest
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ matrix.sanitizer }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
sanitizer:
17+
- address # is that really necessary for python?
18+
steps:
19+
- name: Build Fuzzers (${{ matrix.sanitizer }})
20+
id: build
21+
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
22+
with:
23+
language: python
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
sanitizer: ${{ matrix.sanitizer }}
26+
# Optional but recommended: used to only run fuzzers that are affected
27+
# by the PR.
28+
# See later section on "Git repo for storage".
29+
# storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/OWNER/STORAGE-REPO-NAME.git
30+
# storage-repo-branch: main # Optional. Defaults to "main"
31+
# storage-repo-branch-coverage: gh-pages # Optional. Defaults to "gh-pages".
32+
- name: Run Fuzzers (${{ matrix.sanitizer }})
33+
id: run
34+
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
35+
with:
36+
github-token: ${{ secrets.GITHUB_TOKEN }}
37+
fuzz-seconds: 600
38+
mode: 'code-change'
39+
sanitizer: ${{ matrix.sanitizer }}
40+
output-sarif: true
41+
# Optional but recommended: used to download the corpus produced by
42+
# batch fuzzing.
43+
# See later section on "Git repo for storage".
44+
# storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/OWNER/STORAGE-REPO-NAME.git
45+
# storage-repo-branch: main # Optional. Defaults to "main"
46+
# storage-repo-branch-coverage: gh-pages # Optional. Defaults to "gh-pages".

0 commit comments

Comments
 (0)