Skip to content

Commit b346f62

Browse files
committed
add: cifuzz.yml for PR fuzzing
Signed-off-by: Arjun <pkillarjun@protonmail.com>
1 parent 94d1e94 commit b346f62

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/cifuzz.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CIFuzz
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: 'roughtime'
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: 'roughtime'
20+
language: go
21+
fuzz-seconds: 300
22+
output-sarif: true
23+
- name: Upload Crash
24+
uses: actions/upload-artifact@v3
25+
if: failure() && steps.build.outcome == 'success'
26+
with:
27+
name: artifacts
28+
path: ./out/artifacts
29+
- name: Upload Sarif
30+
if: always() && steps.build.outcome == 'success'
31+
uses: github/codeql-action/upload-sarif@v2
32+
with:
33+
# Path to SARIF file relative to the root of the repository
34+
sarif_file: cifuzz-sarif/results.sarif
35+
checkout_path: cifuzz-sarif

0 commit comments

Comments
 (0)