Skip to content

Commit

Permalink
test: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jason1028kr committed Jan 17, 2025
1 parent 6de1ea7 commit a99ab4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vhdbuilder/packer/vhd-scanning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ TRIVY_UPLOAD_TABLE_NAME="trivy-table-${BUILD_ID}-${TIMESTAMP}.txt"
BUILD_RUN_NUMBER=$(echo $BUILD_RUN_NUMBER | cut -d_ -f 1)

# set image version locally, if it is not set in environment variable
if [ -z "${IMAGE_VERSION}" ]; then
if [ -z "${IMAGE_VERSION:-}" ]; then
IMAGE_VERSION=$(date +%Y%m.%d.0)
echo "IMAGE_VERSION was not set, setting it to ${IMAGE_VERSION} for trivy scan and Kusto ingestion"
fi
fi

az vm run-command invoke \
Expand Down

0 comments on commit a99ab4e

Please sign in to comment.