From 282951c8b80842958a7707e2723b915b266202c9 Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Fri, 29 Sep 2023 10:49:38 +0200 Subject: [PATCH] cleanup: remove tfsec (#827) * cleanup(ubuntu) remove tfsec * cleanup(windows) remove tfsec * cleanup(tools-version) remove tfsec --- provisioning/tools-versions.yml | 1 - provisioning/ubuntu-provision.sh | 11 ----------- provisioning/windows-provision.ps1 | 8 -------- 3 files changed, 20 deletions(-) diff --git a/provisioning/tools-versions.yml b/provisioning/tools-versions.yml index 26398d4cc..c81b03e84 100644 --- a/provisioning/tools-versions.yml +++ b/provisioning/tools-versions.yml @@ -30,7 +30,6 @@ packer_version: 1.9.4 python3_version: 3.11.5 ruby_version: 2.6.10 terraform_version: 1.5.7 -tfsec_version: 1.28.1 trivy_version: 0.45.1 updatecli_version: 0.61.1 vagrant_version: 2.3.7 diff --git a/provisioning/ubuntu-provision.sh b/provisioning/ubuntu-provision.sh index 5a0f03001..6a2b6bb16 100755 --- a/provisioning/ubuntu-provision.sh +++ b/provisioning/ubuntu-provision.sh @@ -539,14 +539,6 @@ function install_goss() { chmod +rx /usr/local/bin/goss } -function install_tfsec() { - apt-get update --quiet - apt-get install --yes --no-install-recommends curl # Should already be there but this function should be autonomous - - curl --silent --location --show-error "https://github.com/aquasecurity/tfsec/releases/download/v${TFSEC_VERSION}/tfsec-linux-${ARCHITECTURE}" --output /usr/local/bin/tfsec - chmod a+rx /usr/local/bin/tfsec -} - function install_trivy() { apt-get update --quiet apt-get install --yes --no-install-recommends curl # Should already be there but this function should be autonomous @@ -676,8 +668,6 @@ function sanity_check() { && ruby -v \ && echo 'terraform version:' \ && terraform -v \ - && echo 'tfsec version:' \ - && tfsec --version \ && echo 'unzip version:' \ && unzip -v \ && echo 'updatecli version:' \ @@ -736,7 +726,6 @@ function main() { install_netlifydeploy install_terraform install_kubectl - install_tfsec install_trivy install_nodejs install_playwright_dependencies diff --git a/provisioning/windows-provision.ps1 b/provisioning/windows-provision.ps1 index f34a434c0..e144c7eb4 100644 --- a/provisioning/windows-provision.ps1 +++ b/provisioning/windows-provision.ps1 @@ -299,14 +299,6 @@ $downloads = [ordered]@{ & kubectl.exe version --client; } }; - 'tfsec' = @{ - 'url' = 'https://github.com/aquasecurity/tfsec/releases/download/v{0}/tfsec-windows-amd64.exe' -f $env:TFSEC_VERSION; - - 'local' = "$baseDir\tfsec.exe" - 'sanityCheck'= { - & tfsec.exe --version; - } - }; 'chocolatey-and-packages' = @{ 'url' = 'https://github.com/chocolatey/choco/releases/download/{0}/chocolatey.{0}.nupkg' -f $env:CHOCOLATEY_VERSION; 'local' = "$baseDir\chocolatey.zip";