Skip to content

Commit

Permalink
Adjust tfsec Dockerfile to use latest version (globocom#493)
Browse files Browse the repository at this point in the history
Co-authored-by: José Renato <[email protected]>
  • Loading branch information
joserenatosilva and José Renato authored Jun 26, 2020
1 parent 79f22a0 commit 1b3273a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ gitleaks:
tfsec:
name: tfsec
image: huskyci/tfsec
imageTag: "v0.19.0"
imageTag: "v0.21.0"
cmd: |+
mkdir -p ~/.ssh &&
echo 'GIT_PRIVATE_SSH_KEY' > ~/.ssh/huskyci_id_rsa &&
Expand Down
6 changes: 2 additions & 4 deletions deployments/dockerfiles/tfsec/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
# https://hub.docker.com/r/huskyci/tfsec/
FROM golang:1.13-alpine

ARG TFSEC_VERSION=v0.19.0

RUN apk update && apk upgrade \
&& apk add git jq openssh-client
&& apk add git jq openssh-client curl

RUN wget https://github.com/liamg/tfsec/releases/download/${TFSEC_VERSION}/tfsec-linux-amd64
RUN set -o pipefail && curl https://api.github.com/repos/liamg/tfsec/releases/latest | jq -r ".assets[] | select(.name | contains(\"tfsec-linux-amd64\")) | .browser_download_url" | xargs wget

RUN mv tfsec-linux-amd64 tfsec

Expand Down

0 comments on commit 1b3273a

Please sign in to comment.