Skip to content

Commit fdfa978

Browse files
committed
remove eval in compliance step
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 790f3e1 commit fdfa978

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,14 @@ runs:
225225
INPUT_FAIL_LEVEL: ${{ inputs.compliance-fail-level }}
226226
INPUT_FAIL_ON_VULNS: ${{ inputs.compliance-fail-on-vulnerabilities }}
227227
run: |
228-
cmd="scanpipe check-compliance \
229-
--project $INPUT_PROJECT_NAME \
230-
--fail-level $INPUT_FAIL_LEVEL"
228+
cmd=(
229+
scanpipe check-compliance
230+
--project "$INPUT_PROJECT_NAME"
231+
--fail-level "$INPUT_FAIL_LEVEL"
232+
)
231233
232234
if [[ "$INPUT_FAIL_ON_VULNS" == "true" ]]; then
233-
cmd="$cmd --fail-on-vulnerabilities"
235+
cmd+=(--fail-on-vulnerabilities)
234236
fi
235237
236-
eval "$cmd"
238+
"${cmd[@]}"

0 commit comments

Comments
 (0)