diff --git a/features/src/kubernetes/install-kubernetes-cli.sh b/features/src/kubernetes/install-kubernetes-cli.sh index f245c2d..f5ff0f2 100644 --- a/features/src/kubernetes/install-kubernetes-cli.sh +++ b/features/src/kubernetes/install-kubernetes-cli.sh @@ -11,7 +11,6 @@ get_system_architecture VERSION=${KUBERNETESCLIVERSION:-"latest"} INSTALL_PROMPT="${INSTALLKUBERNETESCLIPROMPT:-"true"}" - if [[ "${VERSION}" == "latest" ]]; then VERSION=$(curl --location --silent https://dl.k8s.io/release/stable.txt) fi diff --git a/features/src/static-analysis/CHANGELOG.md b/features/src/static-analysis/CHANGELOG.md index 1018a35..f1b2aca 100644 --- a/features/src/static-analysis/CHANGELOG.md +++ b/features/src/static-analysis/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.0] - 2024-05-13 + +### Changed + +- Promoting to 1.0.0 + ## [0.0.3] - 2024-04-08 ### Changed diff --git a/features/src/static-analysis/devcontainer-feature.json b/features/src/static-analysis/devcontainer-feature.json index ee6e463..5235c6c 100644 --- a/features/src/static-analysis/devcontainer-feature.json +++ b/features/src/static-analysis/devcontainer-feature.json @@ -1,22 +1,25 @@ { "id": "static-analysis", - "version": "0.0.3", + "version": "1.0.0", "name": "Static Analysis", - "description": "Installs Checkov, Terrascan and Trivy", + "description": "Installs the Checkov CLI, Terrascan CLI and Trivy CLI", "options": { - "checkovVersion": { + "checkovCliVersion": { "type": "string", "description": "Version of Checkov CLI to install", + "proposals": ["latest"], "default": "latest" }, - "terrascanVersion": { + "terrascanCliVersion": { "type": "string", "description": "Version of Terrascan CLI to install", + "proposals": ["latest"], "default": "latest" }, - "trivyVersion": { + "trivyCliVersion": { "type": "string", "description": "Version of Trivy CLI to install", + "proposals": ["latest"], "default": "latest" } } diff --git a/features/src/static-analysis/install-terrascan-cli.sh b/features/src/static-analysis/install-terrascan-cli.sh index b97364f..00f2f2f 100644 --- a/features/src/static-analysis/install-terrascan-cli.sh +++ b/features/src/static-analysis/install-terrascan-cli.sh @@ -9,7 +9,7 @@ source /usr/local/bin/devcontainer-utils get_system_architecture GITHUB_REPOSITORY="tenable/terrascan" -VERSION="${TRIVYCLIVERSION:-"latest"}" +VERSION="${TERRASCANCLIVERSION:-"latest"}" if [[ "${VERSION}" == "latest" ]]; then get_github_latest_tag "${GITHUB_REPOSITORY}" @@ -33,4 +33,4 @@ tar --extract --file "terrascan_${VERSION_STRIP_V}_Linux_${ARCHITECTURE}.tar.gz" install --owner=vscode --group=vscode --mode=775 terrascan /usr/local/bin/terrascan -rm --recursive --force rm -rf terrascan LICENSE README.md CHANGELOG.md "terrascan_${VERSION_STRIP_V}_Linux_${ARCHITECTURE}.tar.gz" +rm --recursive --force terrascan LICENSE README.md CHANGELOG.md "terrascan_${VERSION_STRIP_V}_Linux_${ARCHITECTURE}.tar.gz" diff --git a/features/src/static-analysis/install-trivy-cli.sh b/features/src/static-analysis/install-trivy-cli.sh index 9d923cd..f3134ff 100644 --- a/features/src/static-analysis/install-trivy-cli.sh +++ b/features/src/static-analysis/install-trivy-cli.sh @@ -33,4 +33,4 @@ tar --extract --file "trivy_${VERSION_STRIP_V}_Linux-${ARCHITECTURE}.tar.gz" install --owner=vscode --group=vscode --mode=775 trivy /usr/local/bin/trivy -rm --recursive --force rm -rf trivy LICENSE README.md contrib "trivy_${VERSION_STRIP_V}_Linux-${ARCHITECTURE}.tar.gz" +rm --recursive --force trivy LICENSE README.md contrib "trivy_${VERSION_STRIP_V}_Linux-${ARCHITECTURE}.tar.gz" diff --git a/features/src/static-analysis/install.sh b/features/src/static-analysis/install.sh index 59dd7bc..aa77db5 100644 --- a/features/src/static-analysis/install.sh +++ b/features/src/static-analysis/install.sh @@ -4,11 +4,11 @@ # file not accessible until being built source /usr/local/bin/devcontainer-utils -logger "info" "Installing Checkov CLI (version: ${CHECKOVVERSION})" +logger "info" "Installing Checkov CLI (version: ${CHECKOVCLIVERSION})" bash "$(dirname "${0}")"/install-checkov-cli.sh -logger "info" "Installing Terrascan CLI (version: ${TERRASCANVERSION})" +logger "info" "Installing Terrascan CLI (version: ${TERRASCANCLIVERSION})" bash "$(dirname "${0}")"/install-terrascan-cli.sh -logger "info" "Installing Trivy CLI (version: ${TRIVYVERSION})" +logger "info" "Installing Trivy CLI (version: ${TRIVYCLIVERSION})" bash "$(dirname "${0}")"/install-trivy-cli.sh