xref: /freebsd/crypto/openssh/.github/workflows/cifuzz.yml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1name: CIFuzz
2on:
3  push:
4    paths: [ '**.c', '**.h', '**.m4', '**.sh', '.github/**', '**/Makefile.in', 'configure.ac' ]
5  pull_request:
6    paths: [ '**.c', '**.h', '**.m4', '**.sh', '.github/**', '**/Makefile.in', 'configure.ac' ]
7
8jobs:
9  Fuzzing:
10    if: github.repository != 'openssh/openssh-portable-selfhosted'
11    runs-on: ubuntu-latest
12    steps:
13    - name: Build Fuzzers
14      id: build
15      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
16      with:
17        oss-fuzz-project-name: 'openssh'
18        dry-run: false
19        language: c++
20    - name: Run Fuzzers
21      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
22      with:
23        oss-fuzz-project-name: 'openssh'
24        fuzz-seconds: 600
25        dry-run: false
26        language: c++
27    - name: Upload Crash
28      uses: actions/upload-artifact@main
29      if: failure() && steps.build.outcome == 'success'
30      with:
31        name: artifacts
32        path: ./out/artifacts
33