Skip to content

Commit 53a8162

Browse files
committed
CI: Enable oss-fuzz
Signed-off-by: Wei Liu <[email protected]>
1 parent 9b4e454 commit 53a8162

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/oss-fuzz.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: oss-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: 'td-shim'
15+
language: rust
16+
- name: Run Fuzzers
17+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
18+
with:
19+
oss-fuzz-project-name: 'td-shim'
20+
language: rust
21+
fuzz-seconds: 600
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)