Debian Codegraph @

.github/workflows/cifuzz.yml

raw symbols SCIP
1 # CIFuzz action for OSS-Fuzz set up of Liblouis.
2 # CIFuzz documentation:
3 # - https://google.github.io/oss-fuzz/getting-started/continuous-integration
4 # Liblouis OSS-Fuzz project:
5 # - https://github.com/google/oss-fuzz/blob/master/projects/liblouis
6 # This CI action will build the fuzzers using the Dockerfile and build.sh
7 # script from the Liblouis OSS-Fuzz project folder. It runs on GitHub's
8 # servers.
9
10 # NOTE: This fuzzer tests both table loading and translation of input. Only the
11 # translation deals with untrusted input, so only issues reported from the translation
12 # code are critical, see also SECURITY.md
13
14 # NOTE: For now this workflow is disabled (via the github user interface) because
15 # the fuzzing is run on the OSS-Fuzz infrastructure. It seems of little use to
16 # run the same thing twice.
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: # added using https://github.com/step-security/secure-workflows
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 # v2.19.4
36 with:
37 egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
38
39 - name: Build Fuzzers
40 id: build
41 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@027c5886032f59e952af751069dcb3d4cb134c73 # master
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 # master
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 # v7.0.1
53 if: failure() && steps.build.outcome == 'success'
54 with:
55 name: artifacts
56 path: ./out/artifacts