Skip to content

Commit 9537be5

Browse files
authored
Adds CIFuzz for fuzzing as continuous integration (#919)
1 parent a4fc68a commit 9537be5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/cifuzz.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CIFuzz
2+
on: [pull_request]
3+
jobs:
4+
Fuzzing:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
sanitizer: [address]
10+
steps:
11+
- name: Build Fuzzers (${{ matrix.sanitizer }})
12+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
13+
with:
14+
oss-fuzz-project-name: 'go-sqlite3'
15+
dry-run: false
16+
sanitizer: ${{ matrix.sanitizer }}
17+
- name: Run Fuzzers (${{ matrix.sanitizer }})
18+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
19+
with:
20+
oss-fuzz-project-name: 'go-sqlite3'
21+
fuzz-seconds: 600
22+
dry-run: false
23+
sanitizer: ${{ matrix.sanitizer }}
24+
- name: Upload Crash
25+
uses: actions/upload-artifact@v1
26+
if: failure()
27+
with:
28+
name: ${{ matrix.sanitizer }}-artifacts
29+
path: ./out/artifacts

0 commit comments

Comments
 (0)