Skip to content

Commit

Permalink
Merge pull request #31 from orcasecurity/OCI-263-support-disable-acti…
Browse files Browse the repository at this point in the history
…ve-verification-flag

CICD-263: support "disable-active-verification" flag
  • Loading branch information
saars-orca authored Aug 25, 2024
2 parents 600ccf2 + f4147c3 commit d0c1af8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
| security_checks | secret | List of security issues to detect (comma-separated) | String | No | vulns,secret |
| debug | true | Debug mode | Boolean | No | false |
| log_path | results/ | The directory path to specify where the logs should be written to on debug mode. | String | No | working dir |
| disable_active_verification | true | Disable active verification of secrets | Boolean | No | false |

## Annotations
After scanning, the action will add the results as annotations in a pull request:
Expand Down
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ inputs:
description: "Debug mode"
required: false
default: "false"
disable_active_verification:
description: "Disable active verification"
required: false
default: "false"
log_path:
description: "The directory path to specify where the logs should be written to on debug mode. Default to the current working directory"
required: false
Expand Down
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ function set_global_flags() {
if [ "${INPUT_DEBUG}" == "true" ]; then
GLOBAL_FLAGS+=(--debug)
fi
if [ "${INPUT_DISABLE_ACTIVE_VERIFICATION}" == "true" ]; then
GLOBAL_FLAGS+=(--disable-active-verification)
fi
if [ "${INPUT_LOG_PATH}" ]; then
GLOBAL_FLAGS+=(--log-path "${INPUT_LOG_PATH}")
fi
Expand Down

0 comments on commit d0c1af8

Please sign in to comment.