jansson/.github/workflows/fuzz.yml

32 lines
723 B
YAML
Raw Normal View History

2021-01-27 02:03:12 +08:00
name: oss-fuzz
2021-01-26 04:00:53 +08:00
on:
pull_request:
branches: [ master ]
2021-01-27 01:33:16 +08:00
paths:
- '**.c'
- '**.h'
2021-01-26 04:00:53 +08:00
jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'jansson'
dry-run: false
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'jansson'
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts