Skip to content

Commit

Permalink
[Snyk] Security upgrade golang from 1.21.12-alpine3.20 to alpine3.20 (#…
Browse files Browse the repository at this point in the history
…194)

![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

### Snyk has created this PR to fix 2 vulnerabilities in the dockerfile
dependencies of this project.

Keeping your Docker base image up-to-date means you’ll benefit from
security fixes in the latest version of your chosen image.

#### Snyk changed the following file(s):

- `Dockerfiles/Dockerfile.ssas`

We recommend upgrading to `golang:alpine3.20`, as this image has only
**1** known vulnerabilities. To do this, merge this pull request, then
verify your application still works as expected.



#### Vulnerabilities that will be fixed with an upgrade:

|  | Issue | Score | 

:-------------------------:|:-------------------------|:-------------------------
![low
severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/l.png
'low severity') | CVE-2024-6119
<br/>[SNYK-ALPINE320-OPENSSL-7895537](https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-7895537)
| &nbsp;&nbsp;**54**&nbsp;&nbsp;
![low
severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/l.png
'low severity') | CVE-2024-6119
<br/>[SNYK-ALPINE320-OPENSSL-7895537](https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-7895537)
| &nbsp;&nbsp;**54**&nbsp;&nbsp;
![low
severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/l.png
'low severity') | CVE-2024-9143
<br/>[SNYK-ALPINE320-OPENSSL-8235201](https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201)
| &nbsp;&nbsp;**54**&nbsp;&nbsp;
![low
severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/l.png
'low severity') | CVE-2024-9143
<br/>[SNYK-ALPINE320-OPENSSL-8235201](https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201)
| &nbsp;&nbsp;**54**&nbsp;&nbsp;



---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - Max score is 1000. Note that the real score may have changed since
the PR was raised.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open fix PRs._

For more information: <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiIyMGU2YjVhYS1hZDlkLTQ3Y2ItOGIxMy03OTY2OGUxNDFmODYiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjIwZTZiNWFhLWFkOWQtNDdjYi04YjEzLTc5NjY4ZTE0MWY4NiJ9fQ=="
width="0" height="0"/>
🧐 [View latest project
report](https://app.snyk.io/org/bcda/project/2830ab17-cf13-4780-a2f2-51259a8526d0?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;fix-pr)
📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates)
🛠 [Adjust project
settings](https://app.snyk.io/org/bcda/project/2830ab17-cf13-4780-a2f2-51259a8526d0?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;fix-pr/settings)
📚 [Read about Snyk's upgrade
logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities)

---

**Learn how to fix vulnerabilities with free interactive lessons:**

🦉 [Learn about vulnerability in an interactive lesson of Snyk
Learn.](https://learn.snyk.io/?loc&#x3D;fix-pr)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"golang","from":"1.21.12-alpine3.20","to":"alpine3.20"}],"env":"prod","issuesToFix":["SNYK-ALPINE320-OPENSSL-7895537","SNYK-ALPINE320-OPENSSL-8235201","SNYK-ALPINE320-OPENSSL-7895537","SNYK-ALPINE320-OPENSSL-8235201"],"prId":"20e6b5aa-ad9d-47cb-8b13-79668e141f86","prPublicId":"20e6b5aa-ad9d-47cb-8b13-79668e141f86","packageManager":"dockerfile","priorityScoreList":[54,54],"projectPublicId":"2830ab17-cf13-4780-a2f2-51259a8526d0","projectUrl":"https://app.snyk.io/org/bcda/project/2830ab17-cf13-4780-a2f2-51259a8526d0?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","priorityScore"],"type":"auto","upgrade":["SNYK-ALPINE320-OPENSSL-7895537","SNYK-ALPINE320-OPENSSL-7895537","SNYK-ALPINE320-OPENSSL-8235201","SNYK-ALPINE320-OPENSSL-8235201"],"vulns":["SNYK-ALPINE320-OPENSSL-7895537","SNYK-ALPINE320-OPENSSL-8235201"],"patch":[],"isBreakingChange":false,"remediationStrategy":"vuln"}'

Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Carl Partridge <[email protected]>
  • Loading branch information
3 people authored Nov 13, 2024
1 parent 5b88b20 commit 6ea12cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfiles/Dockerfile.ssas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.12-alpine3.20 AS documentation
FROM golang:alpine3.20 AS documentation
RUN apk update upgrade
RUN apk add git build-base gcc binutils-gold
WORKDIR /go/src/github.com/CMSgov/bcda-ssas-app
Expand All @@ -13,7 +13,7 @@ RUN dir=$(mktemp -d) && \
WORKDIR /go/src/github.com/CMSgov/bcda-ssas-app/ssas/service/main
RUN swagger generate spec -i ../../swaggerui/tags.yml -o ../../swaggerui/swagger.json -m

FROM golang:1.21.12-alpine3.20 AS builder
FROM golang:alpine3.20 AS builder
ARG VERSION
RUN apk update upgrade
RUN apk add git
Expand All @@ -23,7 +23,7 @@ WORKDIR /go/src/github.com/CMSgov/bcda-ssas-app/ssas
COPY --from=documentation /go/src/github.com/CMSgov/bcda-ssas-app/ssas/swaggerui ./swaggerui
RUN go build -ldflags "-X github.com/CMSgov/bcda-ssas-app/ssas/constants.Version=$VERSION" -o ssas ./service/main

FROM golang:1.21.12-alpine3.20
FROM golang:alpine3.20
RUN apk update upgrade
RUN apk --no-cache add ca-certificates aws-cli curl
WORKDIR /go/src/github.com/CMSgov/bcda-ssas-app
Expand Down

0 comments on commit 6ea12cb

Please sign in to comment.