Skip to content

Commit 31eb0eb

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 f1c5a28 commit 31eb0eb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/cifuzz.yml

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

0 commit comments

Comments
 (0)