Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tfsec (v1.28.0) on all platforms #359

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions provisioning/tools-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ maven_version: "3.8.6"
openssh_authorized_keys_url: "https://raw.githubusercontent.com/jenkins-infra/aws/main/ec2_agents_authorized_keys"
packer_version: "1.8.2"
ruby_version: "2.6.10"
tfsec_version: "1.28.0"
vagrant_version: "2.3.2"
yq_version: "4.25.3"
12 changes: 12 additions & 0 deletions provisioning/ubuntu-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,16 @@ function install_datadog() {
systemctl disable datadog-agent
}

## Install Tfsec with ASDF
function install_tfsec() {
# Ensure that ASDF is installed
install_asdf

# Install tfsec with ASDF and set it as default installation
install_asdf_plugin tfsec https://github.com/woneill/asdf-tfsec.git
install_asdf_package tfsec "${TFSEC_VERSION}"
}

## Ensure that the VM is cleaned up
function cleanup() {
export HISTSIZE=0
Expand Down Expand Up @@ -482,6 +492,7 @@ function sanity_check() {
&& parallel --version \
&& python3 --version \
&& ruby -v \
&& tfsec --version \
&& unzip -v \
&& vagrant -v \
&& yq --version \
Expand Down Expand Up @@ -519,6 +530,7 @@ function main() {
install_ruby
install_yq
install_packer
install_tfsec
cleanup
}

Expand Down
2 changes: 2 additions & 0 deletions provisioning/windows-provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ $downloads = [ordered]@{
& "choco.exe" install chromium --yes --no-progress --limit-output --fail-on-error-output --version "${env:CHROMIUM_VERSION}";
& "choco.exe" install datadog-agent --yes --no-progress --limit-output --fail-on-error-output;
& "choco.exe" install vcredist2015 --yes --no-progress --limit-output --fail-on-error-output;
& "choco.exe" install tfsec --yes --no-progress --limit-output --fail-on-error-output --version "${env:TFSEC_VERSION}";
};
'sanityCheck'= {
& "choco.exe";
Expand All @@ -270,6 +271,7 @@ $downloads = [ordered]@{
& "$baseDir\ruby26\bin\bundle" -v;
& "yq.exe" --version;
& "packer.exe" --version;
& "tfsec.exe" --version;
}
};
}
Expand Down