Skip to content

Commit 4d491e1

Browse files
committed
ci: Add GitHub CIFuzz check
1 parent 282f299 commit 4d491e1

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/cifuzz.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Build and shortly run fuzzers in proper Docker environment
2+
# Note that this cannot work with git forks, known CIFuzz limitation
3+
4+
name: CIFuzz
5+
on:
6+
push:
7+
branches:
8+
- 'main'
9+
paths-ignore:
10+
- 'docs/**'
11+
12+
jobs:
13+
Fuzzing:
14+
runs-on: ubuntu-latest
15+
if: github.repository == 'mbroz/cryptsetup'
16+
steps:
17+
- name: Build Fuzzers
18+
id: build
19+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
20+
with:
21+
oss-fuzz-project-name: 'cryptsetup'
22+
dry-run: false
23+
- name: Run Fuzzers
24+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
25+
with:
26+
oss-fuzz-project-name: 'cryptsetup'
27+
fuzz-seconds: 60
28+
dry-run: false
29+
- name: Upload Crash
30+
uses: actions/upload-artifact@v4
31+
if: failure() && steps.build.outcome == 'success'
32+
with:
33+
name: artifacts
34+
path: ./out/artifacts

0 commit comments

Comments
 (0)