Skip to content

Commit 5e9a600

Browse files
authored
fix(migrations): upgrade atlas image to fix CVE vulnerabilities (#3028)
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
1 parent 999b553 commit 5e9a600

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Generate migrations
4343
if: ${{ matrix.app == 'controlplane' }}
4444
env:
45-
ATLAS_VERSION: v1.1.6
45+
ATLAS_VERSION: v1.2.0
4646
run: |
4747
wget -q https://release.ariga.io/atlas/atlas-linux-amd64-$ATLAS_VERSION -O /tmp/atlas
4848
sudo install /tmp/atlas /usr/local/bin/atlas

app/controlplane/Dockerfile.migrations

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Container image built by go-releaser that's used to run migrations against the database during deployment
22
# See https://atlasgo.io/guides/deploying/image
3-
# from: arigaio/atlas:1.2.0
4-
# docker run arigaio/atlas@sha256:69fef5b506378439771fc70e052471780336552dbf35da397f5a7a729da8f7e3 version
5-
# atlas version v1.2.0
6-
FROM arigaio/atlas@sha256:69fef5b506378439771fc70e052471780336552dbf35da397f5a7a729da8f7e3 as base
3+
# from: arigaio/atlas:latest (v1.2.1-29c7cc3-canary)
4+
# docker run arigaio/atlas@sha256:c9a0e6135c1f9c2761f5ef08b1db7a033ee37eb23a68173fd3909e231fdc2919 version
5+
# atlas version v1.2.1-29c7cc3-canary
6+
FROM arigaio/atlas@sha256:c9a0e6135c1f9c2761f5ef08b1db7a033ee37eb23a68173fd3909e231fdc2919 as base
77

88
FROM scratch
99
# Update permissions to make it readable by the user

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ init: init-api-tools
99
# in the community version anymore https://github.com/ariga/atlas/issues/2388#issuecomment-1864287189
1010
# install golangci-lint with Go 1.25 support
1111
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v2.4.0
12-
curl -sSf https://atlasgo.sh | ATLAS_VERSION=v1.1.6 sh -s -- -y
12+
curl -sSf https://atlasgo.sh | ATLAS_VERSION=v1.2.0 sh -s -- -y
1313

1414
# initialize API tooling
1515
.PHONY: init-api-tools

0 commit comments

Comments
 (0)