Skip to content

Commit

Permalink
cleanup: remove tfsec (#827)
Browse files Browse the repository at this point in the history
* cleanup(ubuntu) remove tfsec

* cleanup(windows) remove tfsec

* cleanup(tools-version) remove tfsec
  • Loading branch information
dduportal authored Sep 29, 2023
1 parent c3efbac commit 282951c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion provisioning/tools-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions provisioning/ubuntu-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:' \
Expand Down Expand Up @@ -736,7 +726,6 @@ function main() {
install_netlifydeploy
install_terraform
install_kubectl
install_tfsec
install_trivy
install_nodejs
install_playwright_dependencies
Expand Down
8 changes: 0 additions & 8 deletions provisioning/windows-provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 282951c

Please sign in to comment.