Skip to content

Commit ef46e6c

Browse files
committed
Adding CIFuzz to Actions
1 parent e2ce403 commit ef46e6c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/cifuzz.yml

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

0 commit comments

Comments
 (0)