From 14cc003a7ced32b20ad49167c95180b08c7d91af Mon Sep 17 00:00:00 2001 From: Pavan <25031267+Pavan-SAP@users.noreply.github.com> Date: Thu, 21 May 2026 15:26:09 +0200 Subject: [PATCH 1/2] [Misc] workflows: action versions updated Use latest version(s) of github actions. --- .github/workflows/build.yml | 16 ++++++++-------- .github/workflows/docker-push.yml | 10 +++++----- .github/workflows/generate-manifest.yml | 2 +- .github/workflows/publish-helm.yml | 16 ++++++++-------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 281642b..4df874c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,10 +21,10 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version-file: 'go.mod' cache: true @@ -39,7 +39,7 @@ jobs: run: go test -v -cover -coverprofile=coverage.out ./... - name: Upload Test results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: test-coverage path: coverage.out @@ -50,10 +50,10 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version-file: 'go.mod' cache: true @@ -72,17 +72,17 @@ jobs: steps: - name: Check out code for Sonar Analysis - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Download Test results - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: test-coverage - name: SonarCloud Scan - uses: SonarSource/sonarqube-scan-action@master + uses: SonarSource/sonarqube-scan-action@v8 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 342dfe8..8ae3e0a 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -23,13 +23,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Log in to the Container registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -43,14 +43,14 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: extract-metadata - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 with: images: ${{ steps.prepare-repository-name.outputs.repository }} tags: | type=semver,pattern={{version}} - name: Build and push docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v7 with: file: Dockerfile platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/generate-manifest.yml b/.github/workflows/generate-manifest.yml index 15cc3ba..26d12ee 100644 --- a/.github/workflows/generate-manifest.yml +++ b/.github/workflows/generate-manifest.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Get version and upload URL id: get_version_upload_url diff --git a/.github/workflows/publish-helm.yml b/.github/workflows/publish-helm.yml index 5c90de7..5e221aa 100644 --- a/.github/workflows/publish-helm.yml +++ b/.github/workflows/publish-helm.yml @@ -19,9 +19,9 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - - uses: azure/setup-helm@v4 + - uses: azure/setup-helm@v5 - name: Determine target commit id: get_target_commit @@ -68,21 +68,21 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: website path: website token: ${{ secrets.WORKFLOW_USER_TOKEN }} - - uses: azure/setup-helm@v4 + - uses: azure/setup-helm@v5 - name: Setup Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v6 - name: Create package run: | @@ -125,9 +125,9 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - - uses: azure/setup-helm@v4 + - uses: azure/setup-helm@v5 - name: Create package run: | From 3eceb1b75defa793dd4e3cc4a0d9a9b12105dac4 Mon Sep 17 00:00:00 2001 From: Pavan <25031267+Pavan-SAP@users.noreply.github.com> Date: Thu, 21 May 2026 15:48:38 +0200 Subject: [PATCH 2/2] [Misc] gofmt: action output fixed The command now exits with 1 when a diff exists! --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4df874c..a927ee0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,7 +62,7 @@ jobs: run: go vet ./... - name: Run gofmt - run: res="$(gofmt -d -l -s ./)" && echo "$res" && test -z "$res" + run: gofmt -d -l -s ./ analysis: name: Analyze with Sonar Cloud