Skip to content

Commit 57e1c4e

Browse files
CARRY: Upgrade go version to 1.21 to fix CVEs
1 parent 61356e3 commit 57e1c4e

File tree

11 files changed

+41
-13
lines changed

11 files changed

+41
-13
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set Go
2020
uses: actions/setup-go@v3
2121
with:
22-
go-version: v1.20
22+
go-version: v1.21
2323

2424
- name: Login to Quay.io
2525
uses: redhat-actions/podman-login@v1

.github/workflows/mnist-job-test-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: v1.20
22+
go-version: v1.21
2323

2424
- name: Login to Quay.io
2525
id: podman-login-quay

.github/workflows/operator-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: v1.20
25+
go-version: v1.21
2626

2727
- name: Login to Quay.io
2828
id: podman-login-quay

.github/workflows/precommit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
precommit:
1313
runs-on: ubuntu-latest
1414
container:
15-
image: quay.io/opendatahub/pre-commit-go-toolchain:v0.2 # https://github.com/opendatahub-io/data-science-pipelines-operator/blob/main/.github
15+
image: quay.io/opendatahub/pre-commit-go-toolchain:v0.5 # https://github.com/opendatahub-io/data-science-pipelines-operator/blob/main/.github
1616
env:
1717
XDG_CACHE_HOME: /cache
1818
GOCACHE: /cache/go-build
@@ -26,13 +26,14 @@ jobs:
2626
- name: Set Go
2727
uses: actions/setup-go@v5
2828
with:
29-
go-version: v1.20
29+
go-version: v1.21
3030

3131
- name: Activate cache
3232
uses: actions/cache@v4
3333
with:
3434
path: /cache
3535
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum', '.pre-commit-config.yaml') }}
36-
36+
- name: Mark source directory as safe
37+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
3738
- name: Run pre-commit checks
3839
run: pre-commit run --all-files

.github/workflows/tag-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Set Go
6565
uses: actions/setup-go@v5
6666
with:
67-
go-version: v1.20
67+
go-version: v1.21
6868

6969
- name: Verify that release doesn't exist yet
7070
shell: bash {0}

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set Go
2828
uses: actions/setup-go@v5
2929
with:
30-
go-version: v1.20
30+
go-version: v1.21
3131

3232
- name: Activate cache
3333
uses: actions/cache@v4

.github/workflows/verify_generated_files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set Go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: v1.20
27+
go-version: v1.21
2828
- name: Verify that imports are organized
2929
run: make verify-imports
3030

@@ -35,6 +35,6 @@ jobs:
3535
- name: Set Go
3636
uses: actions/setup-go@v5
3737
with:
38-
go-version: v1.20
38+
go-version: v1.21
3939
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated
4040
run: make manifests && git diff --exit-code

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Here are a few things to go over before getting started with CodeFlare Operator
55
## Environment setup
66

77
The following should be installed in your working environment:
8-
- Go 1.20.x
8+
- Go 1.21.x
99
- [Download release](https://go.dev/dl/)
1010
- [Install Instructions](https://go.dev/doc/install)
1111
- [Operator SDK](https://sdk.operatorframework.io/docs/installation/)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM registry.access.redhat.com/ubi8/go-toolset:1.20.10 as builder
2+
FROM registry.access.redhat.com/ubi8/go-toolset:1.21 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/project-codeflare/codeflare-operator
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/onsi/gomega v1.27.10

0 commit comments

Comments
 (0)