| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
name: CIFuzz |
| 19 |
on: |
| 20 |
pull_request: |
| 21 |
branches: [ master ] |
| 22 |
paths: |
| 23 |
- '**.h' |
| 24 |
- '**.c' |
| 25 |
- 'liblouis/liblouis/liblouis.h.in' |
| 26 |
|
| 27 |
permissions: |
| 28 |
contents: read |
| 29 |
|
| 30 |
jobs: |
| 31 |
Fuzzing: |
| 32 |
runs-on: ubuntu-latest |
| 33 |
steps: |
| 34 |
- name: Harden Runner |
| 35 |
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 |
| 36 |
with: |
| 37 |
egress-policy: audit |
| 38 |
|
| 39 |
- name: Build Fuzzers |
| 40 |
id: build |
| 41 |
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@027c5886032f59e952af751069dcb3d4cb134c73 |
| 42 |
with: |
| 43 |
oss-fuzz-project-name: 'liblouis' |
| 44 |
language: c |
| 45 |
- name: Run Fuzzers |
| 46 |
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@027c5886032f59e952af751069dcb3d4cb134c73 |
| 47 |
with: |
| 48 |
oss-fuzz-project-name: 'liblouis' |
| 49 |
fuzz-seconds: 300 |
| 50 |
language: c |
| 51 |
- name: Upload Crash |
| 52 |
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a |
| 53 |
if: failure() && steps.build.outcome == 'success' |
| 54 |
with: |
| 55 |
name: artifacts |
| 56 |
path: ./out/artifacts |