]> git.ipfire.org Git - thirdparty/lldpd.git/blame - .github/workflows/fuzz.yml
build: bump actions/upload-artifact from 3 to 4
[thirdparty/lldpd.git] / .github / workflows / fuzz.yml
CommitLineData
9e945ced 1---
5461e01e 2name: Fuzzing
9e945ced
VB
3on:
4 pull_request:
93a40b35 5jobs:
9e945ced 6 fuzzing:
93a40b35
A
7 runs-on: ubuntu-latest
8 strategy:
9 fail-fast: false
10 matrix:
9e945ced
VB
11 sanitizer:
12 - address
13 - undefined
14 - memory
93a40b35 15 steps:
9e945ced
VB
16 - name: Build Fuzzers (${{ matrix.sanitizer }})
17 id: build
18 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
19 with:
20 oss-fuzz-project-name: "lldpd"
21 dry-run: false
22 language: c
23 sanitizer: ${{ matrix.sanitizer }}
24 - name: Run Fuzzers (${{ matrix.sanitizer }})
25 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
26 with:
27 oss-fuzz-project-name: "lldpd"
28 dry-run: false
29 language: c
30 fuzz-seconds: 300
31 sanitizer: ${{ matrix.sanitizer }}
32 - name: Upload Crash
79c42d4a 33 uses: actions/upload-artifact@v4
9e945ced
VB
34 if: failure() && steps.build.outcome == 'success'
35 with:
36 name: ${{ matrix.sanitizer }}-artifacts
37 path: ./out/artifacts