Skip to content

Commit

Permalink
Fixed tfsec vulnerability (#941)
Browse files Browse the repository at this point in the history
* INSIGHTS-153 Remove new vulnerability CVE-2024-6257

* Fixing tfsec vulnerability

* Fixing tfsec vulnerability

* Fixing tfsec vulnerability

* Updated version

* Updated version

* Fixing script

* Fixing script
  • Loading branch information
jdesouza authored Jun 28, 2024
1 parent 1524f09 commit 13639c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions plugins/ci/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 5.5.8
* Fixed CI vulnerability

## 5.5.7
* Bump alpine to 3.20

Expand Down
4 changes: 2 additions & 2 deletions plugins/ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3.20 AS downloader
ARG TARGETARCH
ARG TARGETOS
ENV tfsecVersion=1.28.6
ENV tfsecVersion=1.28.9
ENV trivyVersion=0.50.4
ENV polarisVersion=9.0.0
ENV plutoVersion=5.19.4
Expand All @@ -11,7 +11,7 @@ ENV helmVersion=3.11.2
RUN apk update && apk --no-cache add curl bash openssl ca-certificates
RUN if [ "${TARGETARCH}" = "amd64" ] ; then trivyArch="64bit"; else trivyArch="${TARGETARCH}"; fi && \
curl -L https://github.com/aquasecurity/trivy/releases/download/v${trivyVersion}/trivy_${trivyVersion}_${TARGETOS}-${trivyArch}.tar.gz > trivy.tar.gz && tar -xvf trivy.tar.gz && mv ./trivy /usr/local/bin/trivy && rm trivy.tar.gz
RUN curl -L https://github.com/aquasecurity/tfsec/releases/download/v${tfsecVersion}/tfsec-${TARGETOS}-${TARGETARCH} > /usr/local/bin/tfsec && chmod +x /usr/local/bin/tfsec
RUN curl -L https://github.com/aquasecurity/tfsec/releases/download/v${tfsecVersion}/tfsec_${tfsecVersion}_${TARGETOS}_${TARGETARCH}.tar.gz > tfsec.tar.gz && tar -xvf tfsec.tar.gz && mv ./tfsec /usr/local/bin/tfsec && chmod +x /usr/local/bin/tfsec && rm tfsec.tar.gz
RUN curl -L "https://github.com/FairwindsOps/polaris/releases/download/$polarisVersion/polaris_${TARGETOS}_${TARGETARCH}.tar.gz" > polaris.tar.gz && tar -xvf polaris.tar.gz && chmod +x polaris && rm polaris.tar.gz && mv ./polaris /usr/local/bin/polaris
RUN curl -L "https://github.com/FairwindsOps/pluto/releases/download/v$plutoVersion/pluto_${plutoVersion}_${TARGETOS}_${TARGETARCH}.tar.gz" > pluto.tar.gz && tar -xvf pluto.tar.gz && chmod +x pluto && rm pluto.tar.gz && mv ./pluto /usr/local/bin/pluto

Expand Down
2 changes: 1 addition & 1 deletion plugins/ci/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.5.7
5.5.8

0 comments on commit 13639c0

Please sign in to comment.