Skip to content

Commit ca31022

Browse files
authored
ci: Temporarily disable CIS scanning (#7357)
1 parent 6be01f0 commit ca31022

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vhdbuilder/packer/vhd-scanning.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,18 @@ if ! requiresCISScan "${OS_SKU}" "${OS_VERSION}"; then
274274
exit 0
275275
fi
276276

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+
277289
# Compare current cis-report.txt against stored baseline for Ubuntu 22.04 / 24.04.
278290
# A regression is when a rule that previously "pass" now has any other result.
279291
compare_cis_with_baseline() {

0 commit comments

Comments
 (0)