diff --git a/.github/workflows/component-tests.yaml b/.github/workflows/component-tests.yaml index dcd542c8..e0947817 100644 --- a/.github/workflows/component-tests.yaml +++ b/.github/workflows/component-tests.yaml @@ -2,7 +2,7 @@ name: Node Agent Component Tests on: pull_request: types: [synchronize, ready_for_review, opened, reopened] - + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -92,7 +92,7 @@ jobs: CGO_ENABLED: 0 uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.23" - name: Run test run: | cd tests && go test -v ./... -run ${{ matrix.test }} --timeout=20m --tags=component diff --git a/.github/workflows/pr-created.yaml b/.github/workflows/pr-created.yaml index f156856d..bbe47e2b 100644 --- a/.github/workflows/pr-created.yaml +++ b/.github/workflows/pr-created.yaml @@ -15,6 +15,6 @@ jobs: pr-created: uses: kubescape/workflows/.github/workflows/incluster-comp-pr-created.yaml@main with: - GO_VERSION: "1.22" + GO_VERSION: "1.23" CGO_ENABLED: 0 secrets: inherit diff --git a/.github/workflows/pr-merged.yaml b/.github/workflows/pr-merged.yaml index 9c597163..0efca7b9 100644 --- a/.github/workflows/pr-merged.yaml +++ b/.github/workflows/pr-merged.yaml @@ -7,8 +7,8 @@ on: paths-ignore: - '**.md' ### Ignore running when README.MD changed. - '.github/workflows/*' ### Ignore running when files under path: .github/workflows/* changed. - - workflow_dispatch: + + workflow_dispatch: jobs: reset-run-number: @@ -35,7 +35,7 @@ jobs: CGO_ENABLED: 0 GO111MODULE: "on" BUILD_PLATFORM: linux/amd64,linux/arm64 - GO_VERSION: "1.22" + GO_VERSION: "1.23" REQUIRED_TESTS: '[ "relevantCVEs", "relevancy_enabled_stop_sniffing", diff --git a/build/Dockerfile b/build/Dockerfile index 33bd4481..d587cb68 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM golang:1.22-bullseye AS builder +FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS builder ENV GO111MODULE=on CGO_ENABLED=0 WORKDIR /work @@ -9,7 +9,7 @@ RUN --mount=target=. \ --mount=type=cache,target=/go/pkg \ GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/node-agent . -FROM gcr.io/distroless/static-debian11:latest +FROM gcr.io/distroless/static-debian12:latest COPY --from=builder /out/node-agent /usr/bin/node-agent