Skip to content

Commit 1d60ad2

Browse files
committed
add pack-safe
1 parent c937dce commit 1d60ad2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ after the build artifact has been created.
118118
| `REPORT_PATH` | **Yes** | The location relative to the checkout where analysis reports will be stored after the scan is finished. The directory specified as `REPORT_PATH` must be empty. |
119119
| `RL_DIFF_WITH` | No | Use this parameter to specify a previously scanned package version to compare (diff) against. |
120120
| `RL_VERBOSE` | No | Set to anything but '' to provide more feedback in the output while running the scan. Disabled by default. |
121+
| `RL_PACK_SAFE` | No | Use this parameter to generate a SAFE archive (report.rl-safe) for the scan. |
121122
| `RLSECURE_PROXY_SERVER` | No | Server name for proxy configuration (IP address or DNS name). |
122123
| `RLSECURE_PROXY_PORT` | No | Network port on the proxy server for proxy configuration. Required if `RLSECURE_PROXY_SERVER` is used. |
123124
| `RLSECURE_PROXY_USER` | No | User name for proxy authentication. |

rl-scanner-cloud-gitlab-include.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
# - RL_DIFF_WITH: optional
3737
# Do a diff scan against a previous version in the same Project/Package.
3838

39+
# - RL_PACK_SAFE: optional
40+
# Create a RL-SAFE report
41+
3942
# If the local runner needs to access the internet via a proxy we support that using:
4043
# - RLSECURE_PROXY_SERVER: optional
4144
# - RLSECURE_PROXY_PORT: optional
@@ -116,7 +119,8 @@ job-reversinglabs-rl-scanner-cloud:
116119
# - RL_DIFF_WITH: optional, string, default ''.
117120
# The DIFF_WITH=<version> van be used to report the differences between 2 versions.
118121
# The DIFF_WITH version must have been scanned at a earlier moment (in the same Project/Package)
119-
#.
122+
# - RL_PACK_SAFE: optional, string, default ''.
123+
#
120124
# E) Additional verbosity can be configured with:
121125
# - RL_VERBOSE: optional, default '' (anything else will be treated as true)
122126
#
@@ -130,6 +134,7 @@ job-reversinglabs-rl-scanner-cloud:
130134
RLPORTAL_GROUP: ${RLPORTAL_GROUP:-No server name was given}
131135
RL_PACKAGE_URL: ${RL_PACKAGE_URL:-No package URL given: no diff scan can be executed}
132136
RL_DIFF_WITH: ${RL_DIFF_WITH:-No diff with was requested}
137+
RL_PACK_SAFE: ${RL_PACK_SAFE:-No RL-SAFE archive was requested}
133138
PACKAGE_PATH: ${PACKAGE_PATH:-No path specified}
134139
MY_ARTIFACT_TO_SCAN: ${MY_ARTIFACT_TO_SCAN:-No artifact specified}
135140
REPORT_PATH: ${REPORT_PATH:-No path specified}
@@ -208,6 +213,10 @@ job-reversinglabs-rl-scanner-cloud:
208213
}
209214
run_scan_cloud()
210215
{
216+
if [ ! -z "${RL_PACK_SAFE}" ]
217+
then
218+
RL_PACK_SAFE_STR="--pack-safe"
219+
fi
211220
rl-scan \
212221
--replace \
213222
--rl-portal-server="${RLPORTAL_SERVER}" \
@@ -217,6 +226,7 @@ job-reversinglabs-rl-scanner-cloud:
217226
--file-path="./${PACKAGE_PATH}/${MY_ARTIFACT_TO_SCAN}" \
218227
--report-path="${REPORT_PATH}" \
219228
--report-format=all \
229+
${RL_PACK_SAFE_STR} \
220230
${DIFF_WITH} 1>1 2>2
221231
RR=$?
222232
}

0 commit comments

Comments
 (0)