Skip to content

Commit 329882a

Browse files
committed
add rl_level
1 parent c001360 commit 329882a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

rl-scanner-gitlab-include.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
job-reversinglabs-rl-scanner:
4040
# This job will run in the test stage of the pipeline
4141
stage: test
42-
42+
4343
# We will run the reversinglabs/rl-scanner:latest Docker image,
4444
# but will use our own entry point to make it compatible with GitLab runner.
4545
image:
@@ -103,6 +103,7 @@ job-reversinglabs-rl-scanner:
103103
REPORT_PATH: ${REPORT_PATH:-No path specified}
104104
PACKAGE_PATH: ${PACKAGE_PATH:-No path specified}
105105
MY_ARTIFACT_TO_SCAN: ${MY_ARTIFACT_TO_SCAN:-No artifact specified}
106+
RL_LEVEL: ${RL_LEVEL:-No policy level was specified. Defaults to 5, unless RL_STORE is used.}
106107
RL_STORE: ${RL_STORE:-No path specified for RL_STORE: no diff scan can be executed}
107108
RL_PACKAGE_URL: ${RL_PACKAGE_URL:-No package URL given: no diff scan can be executed}
108109
RL_DIFF_WITH: ${RL_DIFF_WITH:-No diff with was requested}
@@ -204,8 +205,13 @@ job-reversinglabs-rl-scanner:
204205
}
205206
run_scan_nostore()
206207
{
208+
RL_LEVEL_STR=""
209+
if [ ! -z "${RL_LEVEL}" ]
210+
then
211+
RL_LEVEL_STR="--rl-level=$RL_LEVEL"
212+
fi
207213
rl-scan \
208-
--package-path="./${PACKAGE_PATH}/${MY_ARTIFACT_TO_SCAN}" \
214+
$RL_LEVEL_STR --package-path="./${PACKAGE_PATH}/${MY_ARTIFACT_TO_SCAN}" \
209215
--report-path="${REPORT_PATH}" \
210216
--report-format=all 1>1 2>2
211217
RR=$?

0 commit comments

Comments
 (0)