2020-01-13 23:25:12 +00:00
|
|
|
# action.yml
|
2020-02-06 21:39:43 +00:00
|
|
|
name: 'run-fuzzers'
|
|
|
|
description: 'Runs fuzz target binaries for a specified length of time.'
|
2020-01-13 23:25:12 +00:00
|
|
|
inputs:
|
2020-02-19 23:32:30 +00:00
|
|
|
oss-fuzz-project-name:
|
|
|
|
description: 'The OSS-Fuzz project name.'
|
|
|
|
required: true
|
2021-02-19 19:54:15 +00:00
|
|
|
language:
|
|
|
|
description: 'Programming language project is written in.'
|
|
|
|
required: false
|
|
|
|
default: 'c++'
|
2020-01-29 19:03:43 +00:00
|
|
|
fuzz-seconds:
|
|
|
|
description: 'The total time allotted for fuzzing in seconds.'
|
|
|
|
required: true
|
2020-02-06 21:39:43 +00:00
|
|
|
default: 600
|
2020-02-03 23:35:04 +00:00
|
|
|
dry-run:
|
|
|
|
description: 'If set, run the action without actually reporting a failure.'
|
|
|
|
default: false
|
2020-06-12 01:27:01 +00:00
|
|
|
sanitizer:
|
|
|
|
description: 'The sanitizer to run the fuzzers with.'
|
|
|
|
default: 'address'
|
2021-02-03 20:46:19 +00:00
|
|
|
build-integration-path:
|
|
|
|
description: "The path to the the project's build integration."
|
|
|
|
required: false
|
2021-02-01 18:49:33 +00:00
|
|
|
run-fuzzers-mode:
|
|
|
|
description: |
|
|
|
|
The mode to run the fuzzers with ("ci" or "batch").
|
|
|
|
"ci" is for fuzzing a pull request or commit.
|
|
|
|
"batch" is for non-interactive fuzzing of an entire project.
|
|
|
|
"batch" is in alpha and should not be used in production.
|
|
|
|
required: false
|
|
|
|
default: 'ci'
|
2020-01-13 23:25:12 +00:00
|
|
|
runs:
|
|
|
|
using: 'docker'
|
2020-11-24 14:32:23 +00:00
|
|
|
image: '../../../run_fuzzers.Dockerfile'
|
2020-01-13 23:25:12 +00:00
|
|
|
env:
|
2020-02-19 23:32:30 +00:00
|
|
|
OSS_FUZZ_PROJECT_NAME: ${{ inputs.oss-fuzz-project-name }}
|
2021-02-19 19:54:15 +00:00
|
|
|
LANGUAGE: ${{ inputs.language }}
|
2020-01-29 19:03:43 +00:00
|
|
|
FUZZ_SECONDS: ${{ inputs.fuzz-seconds }}
|
2020-02-03 23:35:04 +00:00
|
|
|
DRY_RUN: ${{ inputs.dry-run}}
|
2020-06-12 01:27:01 +00:00
|
|
|
SANITIZER: ${{ inputs.sanitizer }}
|
2021-02-01 18:49:33 +00:00
|
|
|
RUN_FUZZERS_MODE: ${{ inputs.run-fuzzers-mode }}
|
2021-02-03 20:46:19 +00:00
|
|
|
# TODO(metzman): Even though this param is used for building, it's needed
|
|
|
|
# for running because we use it to distinguish OSS-Fuzz from non-OSS-Fuzz.
|
|
|
|
# We should do something explicit instead.
|
|
|
|
BUILD_INTEGRATION_PATH: ${{ inputs.build-integration-path }}
|