From 6c5180ee181f5be27e0376c0740d6cc5737797fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Fri, 15 Dec 2023 14:02:12 +0100 Subject: [PATCH 1/7] configures golang/govulncheck-action --- .github/workflows/run-vuln-check.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/run-vuln-check.yaml diff --git a/.github/workflows/run-vuln-check.yaml b/.github/workflows/run-vuln-check.yaml new file mode 100644 index 00000000..5201368f --- /dev/null +++ b/.github/workflows/run-vuln-check.yaml @@ -0,0 +1,19 @@ +name: Run vuln check +on: + push: + branches: [ "main" ] + pull_request: +permissions: + contents: read +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: vulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: 1.21.4 + go-package: ./... From b3fb30a6aa090409aa14ed002f82287bf42b7dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Fri, 15 Dec 2023 14:26:34 +0100 Subject: [PATCH 2/7] bumps golang version to 1.21.5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cab2a5b9..b22e4ec3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.20 as builder +FROM golang:1.21.5 as builder ARG TARGETOS ARG TARGETARCH From 1ab30910a403aea6c4e6302a3c444ce411b29953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Fri, 15 Dec 2023 14:34:51 +0100 Subject: [PATCH 3/7] uses 1.21.5 version in go.mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 9856a72a..975be688 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kyma-project/infrastructure-manager -go 1.21 +go 1.21.5 require ( github.com/gardener/gardener v1.85.0 From ae670d83848e1c12d15299db98c75a3a0b9d68b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Fri, 15 Dec 2023 14:44:24 +0100 Subject: [PATCH 4/7] linter uses 1.21.5 version as well --- .github/workflows/golangci-lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 420f77fc..ac95f132 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21.5' cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v3 From 0f1b40269451602c2b62a90ff38a2c85d4ff7a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Fri, 15 Dec 2023 14:50:24 +0100 Subject: [PATCH 5/7] govulncheck action uses 1.21.5 version as well --- .github/workflows/run-vuln-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-vuln-check.yaml b/.github/workflows/run-vuln-check.yaml index 5201368f..179b188b 100644 --- a/.github/workflows/run-vuln-check.yaml +++ b/.github/workflows/run-vuln-check.yaml @@ -15,5 +15,5 @@ jobs: - name: vulncheck uses: golang/govulncheck-action@v1 with: - go-version-input: 1.21.4 + go-version-input: 1.21.5 go-package: ./... From 302db2e9a5e486fc9e342e347e47bc3112726099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Mon, 18 Dec 2023 08:55:10 +0100 Subject: [PATCH 6/7] switches golang version in go.mod from 1.21.5 to 1.21 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 975be688..9856a72a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kyma-project/infrastructure-manager -go 1.21.5 +go 1.21 require ( github.com/gardener/gardener v1.85.0 From 61cf3b3610c578d1293d52c6074ac21824e27200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Mon, 18 Dec 2023 09:26:58 +0100 Subject: [PATCH 7/7] switches linter go version from 1.21.5 to 1.21 --- .github/workflows/golangci-lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index ac95f132..766fca07 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.21.5' + go-version: '1.21' cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v3