Skip to content

Commit 295d791

Browse files
authored
feat: enable debug mode for custom dependencies scan (#36)
The custom provided command to scan dependencies is run with the debug mode enabled. The env substitution is removed since the command is run using eval.
1 parent 84163dd commit 295d791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/scan-dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
PARAM_STR_SCAN_COMMAND=$(circleci env subst "${PARAM_STR_SCAN_COMMAND}")
4-
53
if [[ -n "${PARAM_STR_SCAN_COMMAND}" ]]; then
64
echo "Running custom scan command: ${PARAM_STR_SCAN_COMMAND}"
75

6+
set -x
87
eval "${PARAM_STR_SCAN_COMMAND}"
8+
set +x
99

1010
elif [[ "${CURRENT_PKG_MANAGER}" == "npm" ]]; then
1111
echo "Running npm audit with high audit level omitting dev dependencies"

0 commit comments

Comments
 (0)