Skip to content

Commit 3caa5d1

Browse files
authored
Merge pull request #6 from orcasecurity/skip_remote_lookup
Add '--skip-remote-lookup' flag
2 parents 23c2e38 + b5ac63c commit 3caa5d1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,8 @@ inputs:
9292
show_annotations:
9393
description: "show github annotations on pull requests"
9494
required: false
95-
default: "true"
95+
default: "true"
96+
skip_remote_lookup:
97+
description: "Do not perform remote lookups for dependency information during the scan"
98+
required: false
99+
default: "false"

entrypoint.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ function set_container_scan_flags() {
8989
if [ "${INPUT_OCI}" == "true" ]; then
9090
SCAN_FLAGS+=(--oci)
9191
fi
92-
if [ "${DISABLE_SECRET}" = "true" ]; then
92+
if [ "${INPUT_DISABLE_SECRET}" = "true" ]; then
9393
SCAN_FLAGS+=(--disable-secret)
9494
fi
9595
if [ "${INPUT_EXCEPTIONS_FILEPATHS}" ]; then
9696
SCAN_FLAGS+=(--exceptions-filepath "${INPUT_EXCEPTIONS_FILEPATHS}")
9797
fi
98-
if [ "${HIDE_VULNERABILITIES}" = "true" ]; then
98+
if [ "${INPUT_HIDE_VULNERABILITIES}" = "true" ]; then
9999
SCAN_FLAGS+=(--hide-vulnerabilities)
100100
fi
101-
if [ "${NUM_CPU}" ]; then
101+
if [ "${INPUT_NUM_CPU}" ]; then
102102
SCAN_FLAGS+=(--num-cpu "${NUM_CPU}")
103103
fi
104104
if [ "${INPUT_SHOW_FAILED_ISSUES_ONLY}" = "true" ]; then
@@ -113,6 +113,9 @@ function set_container_scan_flags() {
113113
if [ "${CONSOLE_OUTPUT_FOR_JSON}" ]; then
114114
SCAN_FLAGS+=(--console-output="${CONSOLE_OUTPUT_FOR_JSON}")
115115
fi
116+
if [ "${INPUT_SKIP_REMOTE_LOOKUP}" == "true" ]; then
117+
SCAN_FLAGS+=(--skip-remote-lookup)
118+
fi
116119
}
117120

118121
function set_env_vars() {

0 commit comments

Comments
 (0)