File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ validate_version_exists() {
4141# make sure we have curl
4242check_packages curl jq ca-certificates libicu-dev
4343
44+ # Normalize version: add 'v' prefix if missing
45+ if [ " ${SBOM_TOOL_VERSION} " != " latest" ] && [[ " ${SBOM_TOOL_VERSION} " != v* ]]; then
46+ SBOM_TOOL_VERSION=" v${SBOM_TOOL_VERSION} "
47+ fi
48+
4449# make sure version is available
4550if [ " ${SBOM_TOOL_VERSION} " = " latest" ]; then SBOM_TOOL_VERSION=$( curl -sL https://api.github.com/repos/microsoft/sbom-tool/releases/latest | jq -r " .tag_name" ) ; fi
4651validate_version_exists SBOM_TOOL_VERSION " ${SBOM_TOOL_VERSION} "
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33# Scenario: install_sbom_specific_version
4- # Verifies that a specific version of sbom-tool (0.3.3 ) installs correctly
4+ # Verifies that a specific version of sbom-tool (2.2.5 ) installs correctly
55
66set -e
77
Original file line number Diff line number Diff line change 1111 "image" : " mcr.microsoft.com/devcontainers/base:ubuntu" ,
1212 "features" : {
1313 "sbom" : {
14- "version" : " 0.3.3 "
14+ "version" : " 2.2.5 "
1515 }
1616 }
1717 },
You can’t perform that action at this time.
0 commit comments