File tree Expand file tree Collapse file tree
src/base/.devcontainer/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979 syft_image.tar
8080 grant_image.tar
8181 tflint_image.tar
82+ zizmor_image.tar
8283 package_base_docker_image :
8384 uses : ./.github/workflows/build_multi_arch_image.yml
8485 permissions :
Original file line number Diff line number Diff line change @@ -35,10 +35,8 @@ apt-get -y install --no-install-recommends htop vim curl git build-essential \
3535# install AWS SAM CLI
3636VERSION=" ${SAM_VERSION} " " ${SCRIPTS_DIR} /${CONTAINER_NAME} /install_aws_sam_cli.sh"
3737# Install ASDF
38- echo " Installing asdf"
3938VERSION=" ${ASDF_VERSION} " " ${SCRIPTS_DIR} /${CONTAINER_NAME} /install_asdf.sh"
4039# install gitleaks
41- echo " Installing gitleaks"
4240VERSION=" ${GITLEAKS_VERSION} " " ${SCRIPTS_DIR} /${CONTAINER_NAME} /install_gitleaks.sh"
4341
4442# install gitsecrets
@@ -53,10 +51,13 @@ chmod 755 /usr/share/secrets-scanner
5351curl -L https://raw.githubusercontent.com/NHSDigital/software-engineering-quality-framework/main/tools/nhsd-git-secrets/nhsd-rules-deny.txt -o /usr/share/secrets-scanner/nhsd-rules-deny.txt
5452
5553# get cfn-guard ruleset
56- wget -O /tmp/ruleset.zip https://github.com/aws-cloudformation/aws-guard-rules-registry/releases/download/1.0.2/ruleset-build-v1.0.2.zip > /dev/null 2>&1
54+ tmp_dir=" $( mktemp -d) "
55+ trap ' rm -rf "${tmp_dir}"' EXIT
56+ download_file=" ${tmp_dir} /ruleset.zip"
57+ curl -fsSL " https://github.com/aws-cloudformation/aws-guard-rules-registry/releases/download/1.0.2/ruleset-build-v1.0.2.zip" -o " ${download_file} "
58+
5759mkdir -p " ${SCRIPTS_DIR} /cfnguard_rulesets"
58- unzip /tmp/ruleset.zip -d " ${SCRIPTS_DIR} /cfnguard_rulesets" > /dev/null 2>&1
59- rm /tmp/ruleset.zip
60+ unzip " ${download_file} " -d " ${SCRIPTS_DIR} /cfnguard_rulesets"
6061
6162# clean up
6263apt-get clean
You can’t perform that action at this time.
0 commit comments