File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -92,4 +92,8 @@ inputs:
92
92
show_annotations :
93
93
description : " show github annotations on pull requests"
94
94
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"
Original file line number Diff line number Diff line change @@ -89,16 +89,16 @@ function set_container_scan_flags() {
89
89
if [ " ${INPUT_OCI} " == " true" ]; then
90
90
SCAN_FLAGS+=(--oci)
91
91
fi
92
- if [ " ${DISABLE_SECRET } " = " true" ]; then
92
+ if [ " ${INPUT_DISABLE_SECRET } " = " true" ]; then
93
93
SCAN_FLAGS+=(--disable-secret)
94
94
fi
95
95
if [ " ${INPUT_EXCEPTIONS_FILEPATHS} " ]; then
96
96
SCAN_FLAGS+=(--exceptions-filepath " ${INPUT_EXCEPTIONS_FILEPATHS} " )
97
97
fi
98
- if [ " ${HIDE_VULNERABILITIES } " = " true" ]; then
98
+ if [ " ${INPUT_HIDE_VULNERABILITIES } " = " true" ]; then
99
99
SCAN_FLAGS+=(--hide-vulnerabilities)
100
100
fi
101
- if [ " ${NUM_CPU } " ]; then
101
+ if [ " ${INPUT_NUM_CPU } " ]; then
102
102
SCAN_FLAGS+=(--num-cpu " ${NUM_CPU} " )
103
103
fi
104
104
if [ " ${INPUT_SHOW_FAILED_ISSUES_ONLY} " = " true" ]; then
@@ -113,6 +113,9 @@ function set_container_scan_flags() {
113
113
if [ " ${CONSOLE_OUTPUT_FOR_JSON} " ]; then
114
114
SCAN_FLAGS+=(--console-output=" ${CONSOLE_OUTPUT_FOR_JSON} " )
115
115
fi
116
+ if [ " ${INPUT_SKIP_REMOTE_LOOKUP} " == " true" ]; then
117
+ SCAN_FLAGS+=(--skip-remote-lookup)
118
+ fi
116
119
}
117
120
118
121
function set_env_vars() {
You can’t perform that action at this time.
0 commit comments