2022-05-17 17:16:50 +08:00
|
|
|
# Copyright (C) 2000 - 2022 Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
2021-06-07 20:57:14 +08:00
|
|
|
name: Fuzzer
|
2020-03-25 01:19:35 +08:00
|
|
|
|
2020-04-08 17:54:31 +08:00
|
|
|
on:
|
|
|
|
# Trigger the workflow on push or pull requests, but only for the
|
|
|
|
# master branch
|
|
|
|
push:
|
|
|
|
branches:
|
2022-05-18 06:03:16 +08:00
|
|
|
- master
|
|
|
|
- '*/ci'
|
2020-04-08 17:54:31 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-05-18 06:03:16 +08:00
|
|
|
- master
|
2020-03-25 01:19:35 +08:00
|
|
|
|
2020-02-21 08:17:50 +08:00
|
|
|
jobs:
|
2020-03-25 01:19:35 +08:00
|
|
|
fuzzing:
|
2020-02-21 08:17:50 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Build Fuzzers
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'curl'
|
2020-02-28 17:29:14 +08:00
|
|
|
dry-run: false
|
2020-03-25 01:19:35 +08:00
|
|
|
|
2020-02-21 08:17:50 +08:00
|
|
|
- name: Run Fuzzers
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'curl'
|
2020-04-03 01:12:24 +08:00
|
|
|
fuzz-seconds: 2400
|
2020-02-28 17:29:14 +08:00
|
|
|
dry-run: false
|
2020-03-25 01:19:35 +08:00
|
|
|
|
2020-02-21 08:17:50 +08:00
|
|
|
- name: Upload Crash
|
2022-05-15 05:37:59 +08:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-02-21 08:17:50 +08:00
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: artifacts
|
|
|
|
path: ./out/artifacts
|