Skip to content

Commit 420a664

Browse files
committed
fuzz: Add cifuzz
This PR adds [cifuzz](https://google.github.io/oss-fuzz/getting-started/continuous-integration/) action workflow which is a service provided by oss-fuzz where this project already runs, this helps in catching shallow bugs, regression or build breakage by running fuzzers on PR for ~5 minutes (excluding the build time).
1 parent b083cef commit 420a664

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/cifuzz.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CIFuzz
2+
on:
3+
schedule:
4+
- cron: '0 12 * * 1' # 12pm Monday
5+
jobs:
6+
Fuzzing:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Build Fuzzers
10+
id: build
11+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
12+
with:
13+
oss-fuzz-project-name: 'python-multipart'
14+
language: python
15+
- name: Run Fuzzers
16+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
17+
with:
18+
oss-fuzz-project-name: 'python-multipart'
19+
language: python
20+
fuzz-seconds: 300
21+
- name: Upload Crash
22+
uses: actions/upload-artifact@v3
23+
if: failure() && steps.build.outcome == 'success'
24+
with:
25+
name: artifacts
26+
path: ./out/artifacts

0 commit comments

Comments
 (0)