There was an error while loading. Please reload this page.
1 parent 790f3e1 commit fdfa978Copy full SHA for fdfa978
1 file changed
action.yml
@@ -225,12 +225,14 @@ runs:
225
INPUT_FAIL_LEVEL: ${{ inputs.compliance-fail-level }}
226
INPUT_FAIL_ON_VULNS: ${{ inputs.compliance-fail-on-vulnerabilities }}
227
run: |
228
- cmd="scanpipe check-compliance \
229
- --project $INPUT_PROJECT_NAME \
230
- --fail-level $INPUT_FAIL_LEVEL"
+ cmd=(
+ scanpipe check-compliance
+ --project "$INPUT_PROJECT_NAME"
231
+ --fail-level "$INPUT_FAIL_LEVEL"
232
+ )
233
234
if [[ "$INPUT_FAIL_ON_VULNS" == "true" ]]; then
- cmd="$cmd --fail-on-vulnerabilities"
235
+ cmd+=(--fail-on-vulnerabilities)
236
fi
237
- eval "$cmd"
238
+ "${cmd[@]}"
0 commit comments