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