Skip to content

Commit f7f2125

Browse files
authored
Merge pull request #1 from Alami-Amine/AA/clusterfuzz
testing clusterfuzz
2 parents c53d771 + 72b5734 commit f7f2125

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/cflite_pr.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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
18+
# Override this with the sanitizers you want.
19+
# - undefined
20+
# - memory
21+
steps:
22+
- name: Build Fuzzers (${{ matrix.sanitizer }})
23+
id: build
24+
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
25+
with:
26+
language: c++ # Change this to the language you are fuzzing.
27+
github-token: ${{ secrets.GITHUB_TOKEN }}
28+
sanitizer: ${{ matrix.sanitizer }}
29+
# Optional but recommended: used to only run fuzzers that are affected
30+
# by the PR.
31+
# See later section on "Git repo for storage".
32+
# storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/OWNER/STORAGE-REPO-NAME.git
33+
# storage-repo-branch: main # Optional. Defaults to "main"
34+
# storage-repo-branch-coverage: gh-pages # Optional. Defaults to "gh-pages".
35+
- name: Run Fuzzers (${{ matrix.sanitizer }})
36+
id: run
37+
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
38+
with:
39+
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
fuzz-seconds: 600
41+
mode: 'code-change'
42+
sanitizer: ${{ matrix.sanitizer }}
43+
output-sarif: true
44+
# Optional but recommended: used to download the corpus produced by
45+
# batch fuzzing.
46+
# See later section on "Git repo for storage".
47+
# storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/OWNER/STORAGE-REPO-NAME.git
48+
# storage-repo-branch: main # Optional. Defaults to "main"
49+
# storage-repo-branch-coverage: gh-pages # Optional. Defaults to "gh-pages".

0 commit comments

Comments
 (0)