Skip to content

Commit

Permalink
Update module
Browse files Browse the repository at this point in the history
  • Loading branch information
craigthackerx committed Dec 13, 2023
1 parent 31e32c0 commit a4b2920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion containers/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ RUN chown -R ${NORMAL_USER}:${NORMAL_USER} /opt && \

RUN curl -L $(curl -s -L https://api.github.com/repos/tfsec/tfsec/releases/latest | jq -r '.assets[] | select(.name | contains("tfsec-linux-amd64")) | .browser_download_url') -o /tmp/tfsec && \
chmod +x /tmp/tfsec && \
mv tfsec /usr/local/bin
mv /tmp/tfsec /usr/local/bin

USER ${NORMAL_USER}
WORKDIR /home/${NORMAL_USER}
Expand Down
2 changes: 1 addition & 1 deletion containers/alpine/packer.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ build {

provisioner "shell" {
environment_vars = ["PATH=${local.path_var}", "PYENV_ROOT=/home/${var.normal_user}/.pyenv"]
execute_command = "sudo -Hu ${var.normal_user} sh -c '{{ .Vars }} {{ .Path }}'"
execute_command = "sh -c '{{ .Vars }} {{ .Path }}'"
inline = [
"curl -L $(curl -s -L https://api.github.com/repos/tfsec/tfsec/releases/latest | jq -r '.assets[] | select(.name | contains(\"tfsec-linux-amd64\")) | .browser_download_url') -o /tmp/tfsec",
"chmod +x /tmp/tfsec",
Expand Down

0 comments on commit a4b2920

Please sign in to comment.