We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6be01f0 commit ca31022Copy full SHA for ca31022
vhdbuilder/packer/vhd-scanning.sh
@@ -274,6 +274,18 @@ if ! requiresCISScan "${OS_SKU}" "${OS_VERSION}"; then
274
exit 0
275
fi
276
277
+SKIP_CIS=${SKIP_CIS:-true}
278
+if [ "${SKIP_CIS,,}" = "true" ]; then
279
+ # For artifacts
280
+ touch cis-report.txt
281
+ touch cis-report.html
282
+ echo "Skipping CIS assessment as SKIP_CIS is set to true"
283
+ capture_benchmark "${SCRIPT_NAME}_cis_report_skipped"
284
+ capture_benchmark "${SCRIPT_NAME}_overall" true
285
+ process_benchmarks
286
+ exit 0
287
+fi
288
+
289
# Compare current cis-report.txt against stored baseline for Ubuntu 22.04 / 24.04.
290
# A regression is when a rule that previously "pass" now has any other result.
291
compare_cis_with_baseline() {
0 commit comments