• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2name: CIFuzz
3on:
4  push:
5    branches:
6      - master
7  pull_request:
8    branches:
9      - master
10jobs:
11  Fuzzing:
12    runs-on: ubuntu-latest
13    if: github.repository == 'SELinuxProject/selinux'
14    strategy:
15      fail-fast: false
16      matrix:
17        sanitizer: [address, undefined, memory]
18    steps:
19      - name: Build Fuzzers (${{ matrix.sanitizer }})
20        id: build
21        uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
22        with:
23          oss-fuzz-project-name: 'selinux'
24          dry-run: false
25          allowed-broken-targets-percentage: 0
26          sanitizer: ${{ matrix.sanitizer }}
27      - name: Run Fuzzers (${{ matrix.sanitizer }})
28        uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
29        with:
30          oss-fuzz-project-name: 'selinux'
31          fuzz-seconds: 600
32          dry-run: false
33          report-unreproducible-crashes: true
34          sanitizer: ${{ matrix.sanitizer }}
35      - name: Upload Crash
36        uses: actions/upload-artifact@v1
37        if: failure() && steps.build.outcome == 'success'
38        with:
39          name: ${{ matrix.sanitizer }}-artifacts
40          path: ./out/artifacts
41