Skip to content

Merge pull request #4441 from MMFuba/patch-2 #1392

Merge pull request #4441 from MMFuba/patch-2

Merge pull request #4441 from MMFuba/patch-2 #1392

Workflow file for this run

name: Fuzzing with OSS-fuzz
on:
push:
pull_request:
paths:
- '**/meson.build'
- '.github/workflows/**'
- 'meson_options.txt'
- 'src/**'
branches:
- main
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@v4
if: failure() && steps.build.outcome == 'success'
with:
name: ${{ matrix.sanitizer }}-artifacts
path: ./out/artifacts