diff --git a/infra/cifuzz/actions/build_fuzzers/action.yml b/infra/cifuzz/actions/build_fuzzers/action.yml index 85aba86340f1..750750a72a3e 100644 --- a/infra/cifuzz/actions/build_fuzzers/action.yml +++ b/infra/cifuzz/actions/build_fuzzers/action.yml @@ -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' @@ -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 }} diff --git a/infra/cifuzz/config_utils.py b/infra/cifuzz/config_utils.py index 8e37c335c7f4..cf33433cc40f 100644 --- a/infra/cifuzz/config_utils.py +++ b/infra/cifuzz/config_utils.py @@ -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: diff --git a/infra/cifuzz/external-actions/build_fuzzers/action.yml b/infra/cifuzz/external-actions/build_fuzzers/action.yml index 11efec792c6b..1cf05a358bb2 100644 --- a/infra/cifuzz/external-actions/build_fuzzers/action.yml +++ b/infra/cifuzz/external-actions/build_fuzzers/action.yml @@ -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. @@ -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 }}