File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 3939job-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=$?
You can’t perform that action at this time.
0 commit comments