diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml new file mode 100644 index 0000000000..bb6df79ef7 --- /dev/null +++ b/.github/workflows/deps.yml @@ -0,0 +1,31 @@ +name: "Dependency Review" +on: [push, pull_request, workflow_dispatch] +permissions: + contents: read +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: "Checkout Repository" + uses: actions/checkout@v4 + with: + show-progress: false + - name: "Dependency Review" + uses: actions/dependency-review-action@v3 + govulncheck: + runs-on: ubuntu-latest + steps: + - name: "Checkout Repository" + uses: actions/checkout@v4 + with: + show-progress: false + - id: govulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: 1.21.3 + go-version-file: go.mod + - id: govulncheck-tests-e2e + uses: golang/govulncheck-action@v1 + with: + go-version-input: 1.21.3 + go-version-file: tests/e2e/go.mod \ No newline at end of file diff --git a/.ko.yaml b/.ko.yaml index 9e532d9365..35ce0eee7d 100644 --- a/.ko.yaml +++ b/.ko.yaml @@ -1 +1 @@ -defaultBaseImage: registry.k8s.io/build-image/go-runner:v2.3.1-go1.20.3-bullseye.0 +defaultBaseImage: registry.k8s.io/build-image/go-runner:v2.3.1-go1.21.3-bookworm.0 diff --git a/Dockerfile b/Dockerfile index 173911ad08..8a111162bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ## BUILD ARGS ## ################################################################################ # This build arg allows the specification of a custom Golang image. -ARG GOLANG_IMAGE=golang:1.20.3 +ARG GOLANG_IMAGE=golang:1.21.3 # The distroless image on which the CPI manager image is built. # @@ -22,7 +22,7 @@ ARG GOLANG_IMAGE=golang:1.20.3 # deterministic builds. Follow what kubernetes uses to build # kube-controller-manager, for example for 1.23.x: # https://github.com/kubernetes/kubernetes/blob/release-1.24/build/common.sh#L94 -ARG DISTROLESS_IMAGE=registry.k8s.io/build-image/go-runner:v2.3.1-go1.20.3-bullseye.0 +ARG DISTROLESS_IMAGE=registry.k8s.io/build-image/go-runner:v2.3.1-go1.21.3-bookworm.0 ################################################################################ ## BUILD STAGE ## diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 3e26f5ad7e..96520bb26a 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -17,7 +17,7 @@ steps: - --platform=linux/amd64,linux/arm64 - . # Build cloudbuild artifacts (for attestation) - - name: 'docker.io/library/golang:1.20.3-bullseye' + - name: 'docker.io/library/golang:1.21.3-bookworm' id: cloudbuild-artifacts entrypoint: make env: