diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 101f8b62d..f1af47760 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -59,7 +59,7 @@ jobs: - name: Build and push container image if: ${{ inputs.push-image }} id: build-image - uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1 + uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4.2.1 with: context: . file: ./Dockerfile @@ -72,7 +72,7 @@ jobs: # and they run on amd64 arch, let's skip the arm64 build for now. name: Build linux/amd64 container image if: ${{ inputs.push-image == false }} - uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1 + uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4.2.1 with: context: . file: ./Dockerfile @@ -82,7 +82,7 @@ jobs: ghcr.io/${{github.repository_owner}}/kubewarden-controller:${{ env.TAG_NAME }} - name: Upload container image to use in other jobs if: ${{ inputs.push-image == false }} - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: kubewarden-controller-image-${{ env.TAG_NAME }} path: /tmp/kubewarden-controller-image-${{ env.TAG_NAME }}.tar diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd71dbbcf..a3945fc04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: make generate-crds tar -czf CRDS.tar.gz -C generated-crds $(ls generated-crds) - name: Upload CRDs as artifacts - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: CRDS path: CRDS.tar.gz @@ -157,7 +157,7 @@ jobs: }); - name: Trigger chart update - uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588 # v2.1.1 + uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570 # v2.1.2 with: token: ${{ secrets.WORKFLOW_PAT }} repository: "${{github.repository_owner}}/helm-charts" diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml index 905fbd154..017995116 100644 --- a/.github/workflows/sbom.yml +++ b/.github/workflows/sbom.yml @@ -77,7 +77,7 @@ jobs: ghcr.io/${{github.repository_owner}}/kubewarden-controller:${SBOM_TAG} - name: Upload SBOMs as artifacts - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: sbom path: kubewarden-controller-sbom-* diff --git a/Dockerfile b/Dockerfile index 8844e70be..2872b72e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.19 as builder +FROM golang:1.21 as builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/go.mod b/go.mod index 8a5eb24f9..c7b9154a4 100644 --- a/go.mod +++ b/go.mod @@ -6,17 +6,17 @@ require ( github.com/ereslibre/kube-webhook-wrapper v0.0.2 github.com/go-logr/logr v1.2.4 github.com/google/go-cmp v0.5.9 - github.com/onsi/ginkgo/v2 v2.9.2 - github.com/onsi/gomega v1.27.4 + github.com/onsi/ginkgo/v2 v2.12.0 + github.com/onsi/gomega v1.27.10 github.com/pkg/errors v0.9.1 - go.opentelemetry.io/otel v1.14.0 - go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.37.0 - go.opentelemetry.io/otel/metric v0.37.0 - go.opentelemetry.io/otel/sdk/metric v0.37.0 - k8s.io/api v0.26.1 - k8s.io/apimachinery v0.26.1 + go.opentelemetry.io/otel v1.17.0 + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.40.0 + go.opentelemetry.io/otel/metric v0.38.1 + go.opentelemetry.io/otel/sdk/metric v0.40.0 + k8s.io/api v0.28.1 + k8s.io/apimachinery v0.28.1 k8s.io/client-go v0.26.1 - sigs.k8s.io/controller-runtime v0.14.6 + sigs.k8s.io/controller-runtime v0.16.1 ) require (