Skip to content

Commit c9d4a55

Browse files
committed
Add CIFuzz
1 parent 5be37aa commit c9d4a55

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/fuzz.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: fuzz
2+
on: [pull_request]
3+
permissions: {}
4+
jobs:
5+
fuzzing:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
security-events: write
9+
steps:
10+
- name: Build Fuzzers
11+
id: build
12+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
13+
with:
14+
oss-fuzz-project-name: 'expr'
15+
language: 'go'
16+
- name: Run Fuzzers
17+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
18+
with:
19+
oss-fuzz-project-name: 'expr'
20+
language: 'go'
21+
fuzz-seconds: 600
22+
- name: Upload Crash
23+
uses: actions/upload-artifact@v3
24+
if: failure() && steps.build.outcome == 'success'
25+
with:
26+
name: artifacts
27+
path: ./out/artifacts
28+
- name: Upload Sarif
29+
if: always() && steps.build.outcome == 'success'
30+
uses: github/codeql-action/upload-sarif@v2
31+
with:
32+
# Path to SARIF file relative to the root of the repository
33+
sarif_file: cifuzz-sarif/results.sarif
34+
checkout_path: cifuzz-sarif

0 commit comments

Comments
 (0)