Skip to content

Commit

Permalink
This allows users to skip CIFuzz's logic to only run affected fuzz (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmetzman authored and MartinPetkov committed Aug 15, 2022
1 parent 08d79ea commit 75b25ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions infra/cifuzz/actions/build_fuzzers/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ inputs:
description: "Whether or not OSS-Fuzz's check for bad builds should be done."
required: false
default: true
keep-unaffected-fuzz-targets:
description: "Whether to keep unaffected fuzzers or delete them."
required: false
default: false
runs:
using: 'docker'
image: '../../../build_fuzzers.Dockerfile'
Expand All @@ -39,3 +43,4 @@ runs:
BAD_BUILD_CHECK: ${{ inputs.bad-build-check }}
CIFUZZ_DEBUG: 'True'
CFL_PLATFORM: 'github'
KEEP_UNAFFECTED_FUZZ_TARGETS: ${{ inputs.keep-unaffected-fuzz-targets }}
2 changes: 1 addition & 1 deletion infra/cifuzz/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __init__(self):
self.bad_build_check = environment.get_bool('BAD_BUILD_CHECK', True)

self.keep_unaffected_fuzz_targets = environment.get_bool(
'KEEP_UNAFFECTED_FUZZERS')
'KEEP_UNAFFECTED_FUZZ_TARGETS')

self.upload_build = environment.get_bool('UPLOAD_BUILD', False)
if not self.keep_unaffected_fuzz_targets:
Expand Down
5 changes: 5 additions & 0 deletions infra/cifuzz/external-actions/build_fuzzers/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ inputs:
description: "Whether or not OSS-Fuzz's check for bad builds should be done."
required: false
default: true
keep-unaffected-fuzz-targets:
description: "Whether to keep unaffected fuzzers or delete them."
required: false
default: false
storage-repo:
description: |
The git repo to use for storing certain artifacts from fuzzing.
Expand Down Expand Up @@ -63,3 +67,4 @@ runs:
UPLOAD_BUILD: ${{ inputs.upload-build }}
CIFUZZ_DEBUG: 'True'
CFL_PLATFORM: 'github'
KEEP_UNAFFECTED_FUZZ_TARGETS: ${{ inputs.keep-unaffected-fuzz-targets }}

0 comments on commit 75b25ef

Please sign in to comment.