2021-07-22 22:19:10 +00:00
|
|
|
# action.yml
|
|
|
|
name: 'build-fuzzers'
|
|
|
|
description: "Builds an OSS-Fuzz project's fuzzers."
|
|
|
|
inputs:
|
|
|
|
language:
|
|
|
|
description: 'Programming language project is written in.'
|
|
|
|
required: false
|
|
|
|
default: 'c++'
|
|
|
|
dry-run:
|
|
|
|
description: 'If set, run the action without actually reporting a failure.'
|
|
|
|
default: false
|
|
|
|
allowed-broken-targets-percentage:
|
|
|
|
description: 'The percentage of broken targets allowed in bad_build_check.'
|
|
|
|
required: false
|
|
|
|
sanitizer:
|
|
|
|
description: 'The sanitizer to build the fuzzers with.'
|
|
|
|
default: 'address'
|
|
|
|
project-src-path:
|
|
|
|
description: "The path to the project's source code checkout."
|
|
|
|
required: false
|
|
|
|
bad-build-check:
|
|
|
|
description: "Whether or not OSS-Fuzz's check for bad builds should be done."
|
|
|
|
required: false
|
|
|
|
default: true
|
2022-02-10 22:11:52 +00:00
|
|
|
keep-unaffected-fuzz-targets:
|
|
|
|
description: "Whether to keep unaffected fuzzers or delete them."
|
|
|
|
required: false
|
|
|
|
default: false
|
2021-07-27 00:46:20 +00:00
|
|
|
storage-repo:
|
|
|
|
description: |
|
|
|
|
The git repo to use for storing certain artifacts from fuzzing.
|
|
|
|
required: false
|
|
|
|
storage-repo-branch:
|
|
|
|
description: |
|
|
|
|
The branch of the git repo to use for storing certain artifacts from
|
|
|
|
fuzzing.
|
|
|
|
required: false
|
|
|
|
storage-repo-branch-coverage:
|
|
|
|
description: |
|
|
|
|
The branch of the git repo to use for storing coverage reports.
|
|
|
|
required: false
|
2021-08-17 06:36:06 +00:00
|
|
|
upload-build:
|
|
|
|
description: |
|
|
|
|
If set, will upload the build.
|
|
|
|
default: false
|
2021-07-29 13:35:01 +00:00
|
|
|
github-token:
|
|
|
|
description: |
|
|
|
|
Token for GitHub API. WARNING: THIS SHOULD NOT BE USED IN PRODUCTION YET
|
|
|
|
You should use "secrets.GITHUB_TOKEN" in your workflow file, do not
|
|
|
|
hardcode the token.
|
|
|
|
TODO(https://github.com/google/oss-fuzz/pull/5841#discussion_r639393361):
|
|
|
|
Document locking this down.
|
|
|
|
required: false
|
2021-07-22 22:19:10 +00:00
|
|
|
runs:
|
|
|
|
using: 'docker'
|
|
|
|
image: '../../../build_fuzzers.Dockerfile'
|
|
|
|
env:
|
|
|
|
OSS_FUZZ_PROJECT_NAME: ${{ inputs.oss-fuzz-project-name }}
|
|
|
|
LANGUAGE: ${{ inputs.language }}
|
|
|
|
DRY_RUN: ${{ inputs.dry-run}}
|
|
|
|
ALLOWED_BROKEN_TARGETS_PERCENTAGE: ${{ inputs.allowed-broken-targets-percentage}}
|
|
|
|
SANITIZER: ${{ inputs.sanitizer }}
|
|
|
|
PROJECT_SRC_PATH: ${{ inputs.project-src-path }}
|
2021-07-29 13:35:01 +00:00
|
|
|
GITHUB_TOKEN: ${{ inputs.github-token }}
|
2021-07-22 22:19:10 +00:00
|
|
|
LOW_DISK_SPACE: 'True'
|
|
|
|
BAD_BUILD_CHECK: ${{ inputs.bad-build-check }}
|
2021-08-17 06:36:06 +00:00
|
|
|
UPLOAD_BUILD: ${{ inputs.upload-build }}
|
2021-10-26 02:18:17 +00:00
|
|
|
CIFUZZ_DEBUG: 'True'
|
2021-11-01 12:29:38 +00:00
|
|
|
CFL_PLATFORM: 'github'
|
2022-02-10 22:11:52 +00:00
|
|
|
KEEP_UNAFFECTED_FUZZ_TARGETS: ${{ inputs.keep-unaffected-fuzz-targets }}
|