github: Update for main branch #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fuzzing with OSS-fuzz | |
on: | |
push: | |
pull_request: | |
paths: | |
- '**/meson.build' | |
- '.github/workflows/**' | |
- 'meson_options.txt' | |
- 'src/**' | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
Fuzzing: | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'lxc/lxc' | |
strategy: | |
fail-fast: false | |
matrix: | |
sanitizer: [address, undefined, memory] | |
steps: | |
- name: Install dependencies not yet listed in ubuntu pkg source | |
run: | | |
sudo apt-get install -qq libdbus-1-dev | |
- name: Build Fuzzers (${{ matrix.sanitizer }}) | |
id: build | |
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | |
with: | |
oss-fuzz-project-name: 'lxc' | |
dry-run: false | |
allowed-broken-targets-percentage: 0 | |
sanitizer: ${{ matrix.sanitizer }} | |
- name: Run Fuzzers (${{ matrix.sanitizer }}) | |
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | |
with: | |
oss-fuzz-project-name: 'lxc' | |
fuzz-seconds: 360 | |
dry-run: false | |
sanitizer: ${{ matrix.sanitizer }} | |
- name: Upload Crash | |
uses: actions/upload-artifact@v3 | |
if: failure() && steps.build.outcome == 'success' | |
with: | |
name: ${{ matrix.sanitizer }}-artifacts | |
path: ./out/artifacts |