From 0ceba7f83668580b00121e343491097a8979ad51 Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Tue, 17 Nov 2026 17:59:58 +0000 Subject: [PATCH 1/7] :camel: Upgrade dependencies --- .github/workflows/build-and-test.yml | 32 +++++++++------ .github/workflows/ci.yml | 10 ++--- .github/workflows/codeql.yml | 38 +++++++++--------- .github/workflows/dependabot.yml | 6 +-- .github/workflows/release.yml | 14 ++++--- .github/workflows/scorecard.yml | 8 ++-- .github/workflows/update-utils.yml | 6 +-- Dockerfile.utils | 4 +- README.md | 2 +- changes/20261117180001.bugfix | 1 + changes/20261117180002.bugfix | 1 + changes/20261117180003.bugfix | 1 + changes/20261117180004.bugfix | 1 + changes/20261117180005.bugfix | 1 + changes/20261117180006.bugfix | 1 + changes/20261117180007.bugfix | 1 + changes/20261117180008.bugfix | 1 + changes/20261117180009.bugfix | 1 + changes/20261117180010.bugfix | 1 + changes/20261117180011.bugfix | 1 + changes/20261117180012.bugfix | 1 + changes/20261117180013.bugfix | 1 + changes/20261117180014.bugfix | 1 + changes/20261117180015.bugfix | 1 + changes/20261117180016.bugfix | 1 + changes/20261117180018.misc | 1 + utils/go.mod | 29 +++++++------- utils/go.sum | 58 +++++++++++++--------------- 28 files changed, 122 insertions(+), 102 deletions(-) create mode 100644 changes/20261117180001.bugfix create mode 100644 changes/20261117180002.bugfix create mode 100644 changes/20261117180003.bugfix create mode 100644 changes/20261117180004.bugfix create mode 100644 changes/20261117180005.bugfix create mode 100644 changes/20261117180006.bugfix create mode 100644 changes/20261117180007.bugfix create mode 100644 changes/20261117180008.bugfix create mode 100644 changes/20261117180009.bugfix create mode 100644 changes/20261117180010.bugfix create mode 100644 changes/20261117180011.bugfix create mode 100644 changes/20261117180012.bugfix create mode 100644 changes/20261117180013.bugfix create mode 100644 changes/20261117180014.bugfix create mode 100644 changes/20261117180015.bugfix create mode 100644 changes/20261117180016.bugfix create mode 100644 changes/20261117180018.misc diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 58d6ee5..2c33b3d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -2,7 +2,7 @@ name: Build and Test # Set environment variables available in all jobs and steps env: - go_version: "1.25.5" + go_version: "1.27.3" python_version: "3.10" on: @@ -14,6 +14,10 @@ on: jobs: build-and-test: + permissions: + contents: read + checks: write + pull-requests: write strategy: matrix: #FIXME os: [ubuntu-latest, macOS-latest, windows-latest] @@ -31,7 +35,7 @@ jobs: steps: # we want the head of the branch that triggered this, not the reference of the commit, this is so we get updated go versions etc. - name: Check out [${{ inputs.branch || github.ref }}] - uses: actions/checkout@v6.0.2 + uses: actions/checkout@v7.0.1 with: ref: ${{ inputs.branch || github.ref }} - name: Update Go env version @@ -40,7 +44,7 @@ jobs: NEW_GO_VERSION=$(cat .github/workflows/build-and-test.yml | grep '^ go_version:' | awk '{ print $2 }' | tr -d '"') echo "go_version=$NEW_GO_VERSION" >> $GITHUB_ENV - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@v7 with: go-version: ${{ env.go_version }} @@ -51,7 +55,7 @@ jobs: - if: ${{ startsWith(matrix.os, 'ubuntu') }} run: echo "CACHE_PATH=${{ env.go_cache_ubuntu_path }}" >> $GITHUB_ENV - name: Load Go Dependency Cache - uses: actions/cache@v5 + uses: actions/cache@v6 with: path: | ${{ env.CACHE_PATH }} @@ -64,11 +68,11 @@ jobs: env: GIT_TOKEN: ${{ secrets.GIT_SECRET }} - name: Build ${{ matrix.go-module }} on ${{ matrix.os }} - run: | - cat go.mod - go mod download - go build -v ./... - working-directory: ${{ matrix.go-module }} + uses: ARM-software/golang-utils/actions/run-go-modules@v1.172.0 + with: + task: build + modules: ./${{ matrix.go-module }} + build-tags: "" - if: ${{ startsWith(matrix.os, 'ubuntu') }} name: Linting uses: golangci/golangci-lint-action@v9 @@ -77,6 +81,12 @@ jobs: version: latest working-directory: ${{ matrix.go-module }} args: "--verbose --output.text.print-issued-lines --output.text.print-linter-name --output.tab.colors --max-issues-per-linter 0 --max-same-issues 0" + - name: Set up gotestsum + uses: ARM-software/golang-utils/actions/setup-gotestsum@v1.172.0 - name: Test ${{ matrix.go-module }} on ${{ matrix.os }} - run: go test -race -cover -v ./... - working-directory: ${{ matrix.go-module }} + uses: ARM-software/golang-utils/actions/test-go-modules@v1.172.0 + with: + modules: ./${{ matrix.go-module }} + build-tags: "" + artifact-prefix: "${{ matrix.go-module }}-${{ matrix.os }}-" + report-name: "${{ matrix.go-module }} tests on ${{ matrix.os }}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7440d3c..7246966 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ concurrency: # Set environment variables available in all jobs and steps env: - go_version: "1.25.5" + go_version: "1.27.3" python_version: "3.9" jobs: @@ -25,10 +25,10 @@ jobs: runs-on: ubuntu-latest steps: # Checkout with full history for to allow compare with base branch - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7 with: python-version: ${{ env.python_version }} - name: Install CI/CD tools @@ -47,10 +47,10 @@ jobs: name: Check for secrets runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7 - name: Install tools run: pip install detect-secrets==1.0.3 && pip list - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 # FIXME: GitLeaks requires a licence now diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1406d21..28ee9e5 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -20,6 +20,9 @@ on: schedule: - cron: '19 21 * * 5' +env: + go_version: "1.27.3" + jobs: analyze: name: Analyze (${{ matrix.language }}) @@ -46,7 +49,6 @@ jobs: matrix: include: - language: go - build-mode: autobuild # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' # Use `c-cpp` to analyze code written in C, C++ or both # Use 'java-kotlin' to analyze code written in Java, Kotlin or both @@ -57,14 +59,20 @@ jobs: # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages steps: - name: Checkout repository - uses: actions/checkout@v6.0.2 + uses: actions/checkout@v7.0.1 + + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version: ${{ env.go_version }} + cache: true + cache-dependency-path: '**/go.sum' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v4.31.10 + uses: github/codeql-action/init@v4.39.3 with: languages: ${{ matrix.language }} - build-mode: ${{ matrix.build-mode }} # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. @@ -72,23 +80,13 @@ jobs: # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - # If the analyze step fails for one of the languages you are analyzing with - # "We were unable to automatically build your code", modify the matrix above - # to set the build mode to "manual" for that language. Then modify this step - # to build your code. - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - if: matrix.build-mode == 'manual' - shell: bash - run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + - name: Build modules for analysis + uses: ARM-software/golang-utils/actions/go-multimodules@v1.172.0 + with: + task: analyze + build-tags: "" - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v4.31.10 + uses: github/codeql-action/analyze@v4.39.3 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 17ff9b9..f51649a 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -21,10 +21,10 @@ jobs: needs: update-utils steps: # Checkout with full history for to allow compare with base branch - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7 with: python-version: ${{ env.python_version }} - uses: FranzDiebold/github-env-vars-action@v2 @@ -32,7 +32,7 @@ jobs: run: pip install continuous-delivery-scripts && pip list - name: Dependabot metadata id: dependabot-metadata - uses: dependabot/fetch-metadata@v2.5.0 + uses: dependabot/fetch-metadata@v3.1.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Add a label diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2729f6..f18540a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: GitHub Release env: - go_version: "1.25.5" + go_version: "1.27.3" python_version: "3.10" on: @@ -19,7 +19,7 @@ jobs: outputs: changes: ${{ steps.check.outputs.changes }} steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v7.0.1 - name: Check if changes directory contains files id: check run: | @@ -33,18 +33,22 @@ jobs: needs: [ check-for-changes ] if: needs.check-for-changes.outputs.changes steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v7.0.1 with: # Get the full history as this is required by goreleaser fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@v7 with: go-version: ${{ env.go_version }} - name: Setup python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ env.python_version }} + - name: Download Go dependencies for every module + uses: ARM-software/golang-utils/actions/go-multimodules@v1.172.0 + with: + task: download - uses: FranzDiebold/github-env-vars-action@v2 - name: Install CI/CD tools run: pip install continuous-delivery-scripts>=2.7 && pip list diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index de0d4eb..ff400ef 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -32,12 +32,12 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v5.0.1 + uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v5.0.1 with: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 + uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0 with: results_file: results.sarif results_format: sarif @@ -59,7 +59,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: SARIF file path: results.sarif @@ -68,6 +68,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard (optional). # Commenting out will disable upload of results to your repo's Code Scanning dashboard - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@a2d9de63c2916881d0621fdb7e65abe32141606d # v3.30.7 + uses: github/codeql-action/upload-sarif@3ea37a44b6e4e6847c46edae209410d258d548d1 # v3.30.7 with: sarif_file: results.sarif diff --git a/.github/workflows/update-utils.yml b/.github/workflows/update-utils.yml index 42461ad..d0f9e03 100644 --- a/.github/workflows/update-utils.yml +++ b/.github/workflows/update-utils.yml @@ -19,13 +19,13 @@ jobs: name: Update Go runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v7.0.1 with: # So that we have correct GIT_TOKEN to push back to branch as we need workflow permissions token: ${{ secrets.GIT_SECRET }} ref: ${{ inputs.branch || github.head_ref || github.ref }} - name: Setup python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ env.python_version }} - name: Install continuous-delivery-scripts @@ -35,7 +35,7 @@ jobs: run: | cd-license-files - name: Checkout Update Go action - uses: actions/checkout@v6.0.2 + uses: actions/checkout@v7.0.1 with: repository: Arm-Debug/update-go-action ref: refs/tags/latest diff --git a/Dockerfile.utils b/Dockerfile.utils index ce54b21..48ed206 100644 --- a/Dockerfile.utils +++ b/Dockerfile.utils @@ -1,4 +1,4 @@ -FROM golang:1.25.5 as utils +FROM golang:1.27.3 as utils WORKDIR /utils @@ -10,4 +10,4 @@ COPY *.go ./ RUN go build -o /utils -ENTRYPOINT ["utils"] \ No newline at end of file +ENTRYPOINT ["utils"] diff --git a/README.md b/README.md index 4c49c31..88ee5ce 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 --> # Embedded development services HTTP client utilities -[![Go Badge](https://img.shields.io/badge/go-v1.25.5-blue)](https://golang.org/) +[![Go Badge](https://img.shields.io/badge/go-v1.27.3-blue)](https://golang.org/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Go Reference](https://pkg.go.dev/badge/github.com/ARM-software/embedded-development-services-client-utils/utils.svg)](https://pkg.go.dev/github.com/ARM-software/embedded-development-services-client-utils/utils) [![Go Report Card](https://goreportcard.com/badge/github.com/ARM-software/embedded-development-services-client-utils/utils)](https://goreportcard.com/report/github.com/ARM-software/embedded-development-services-client-utils/utils) diff --git a/changes/20261117180001.bugfix b/changes/20261117180001.bugfix new file mode 100644 index 0000000..db35af3 --- /dev/null +++ b/changes/20261117180001.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `github.com/ARM-software/embedded-development-services-client/client` from 1.104.2 to 1.108.0 and pick up the compatible `golang-utils` 1.146.0 transitively. diff --git a/changes/20261117180002.bugfix b/changes/20261117180002.bugfix new file mode 100644 index 0000000..7970e43 --- /dev/null +++ b/changes/20261117180002.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `github.com/go-logr/logr` from 1.4.3 to 1.4.4. diff --git a/changes/20261117180003.bugfix b/changes/20261117180003.bugfix new file mode 100644 index 0000000..74521db --- /dev/null +++ b/changes/20261117180003.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `github.com/stretchr/testify` from 1.11.1 to 1.12.1. diff --git a/changes/20261117180004.bugfix b/changes/20261117180004.bugfix new file mode 100644 index 0000000..fa00406 --- /dev/null +++ b/changes/20261117180004.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `actions/setup-python` from 6 to 7 in GitHub workflows. diff --git a/changes/20261117180005.bugfix b/changes/20261117180005.bugfix new file mode 100644 index 0000000..13ada4b --- /dev/null +++ b/changes/20261117180005.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `actions/cache` from 5 to 6 in GitHub workflows. diff --git a/changes/20261117180006.bugfix b/changes/20261117180006.bugfix new file mode 100644 index 0000000..4d7d1f0 --- /dev/null +++ b/changes/20261117180006.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `actions/setup-go` from 6 to 7 in GitHub workflows. diff --git a/changes/20261117180007.bugfix b/changes/20261117180007.bugfix new file mode 100644 index 0000000..cece518 --- /dev/null +++ b/changes/20261117180007.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `actions/checkout` from 6.0.2 to 7.0.1 in GitHub workflows. diff --git a/changes/20261117180008.bugfix b/changes/20261117180008.bugfix new file mode 100644 index 0000000..d0d70a7 --- /dev/null +++ b/changes/20261117180008.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `dependabot/fetch-metadata` from 2.5.0 to 3.1.0. diff --git a/changes/20261117180009.bugfix b/changes/20261117180009.bugfix new file mode 100644 index 0000000..b47b011 --- /dev/null +++ b/changes/20261117180009.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `github.com/go-faker/faker/v4` from 4.7.0 to 4.12.0. diff --git a/changes/20261117180010.bugfix b/changes/20261117180010.bugfix new file mode 100644 index 0000000..1b3452f --- /dev/null +++ b/changes/20261117180010.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `golang` in `Dockerfile.utils` and workflow tooling from 1.25.5 to 1.27.3. diff --git a/changes/20261117180011.bugfix b/changes/20261117180011.bugfix new file mode 100644 index 0000000..d4e8039 --- /dev/null +++ b/changes/20261117180011.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `ossf/scorecard-action` from 2.4.3 to 2.5.0. diff --git a/changes/20261117180012.bugfix b/changes/20261117180012.bugfix new file mode 100644 index 0000000..9d2d4c8 --- /dev/null +++ b/changes/20261117180012.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `github/codeql-action` from 4.31.10 to 4.39.3. diff --git a/changes/20261117180013.bugfix b/changes/20261117180013.bugfix new file mode 100644 index 0000000..d01400e --- /dev/null +++ b/changes/20261117180013.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `github/codeql-action/upload-sarif` to commit `3ea37a44b6e4e6847c46edae209410d258d548d1`. diff --git a/changes/20261117180014.bugfix b/changes/20261117180014.bugfix new file mode 100644 index 0000000..6e26fb0 --- /dev/null +++ b/changes/20261117180014.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `actions/upload-artifact` from 6.0.0 to 7.0.2. diff --git a/changes/20261117180015.bugfix b/changes/20261117180015.bugfix new file mode 100644 index 0000000..6fe0ab9 --- /dev/null +++ b/changes/20261117180015.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `golang.org/x/sync` from 0.19.0 to 0.25.0. diff --git a/changes/20261117180016.bugfix b/changes/20261117180016.bugfix new file mode 100644 index 0000000..b927044 --- /dev/null +++ b/changes/20261117180016.bugfix @@ -0,0 +1 @@ +:camel: Upgrade `go.uber.org/atomic` from 1.11.0 to 1.12.0. diff --git a/changes/20261117180018.misc b/changes/20261117180018.misc new file mode 100644 index 0000000..a8f47e2 --- /dev/null +++ b/changes/20261117180018.misc @@ -0,0 +1 @@ +:gear: Update CI workflows to reuse golang-utils Go-module actions for build, test, analysis, and dependency download steps. diff --git a/utils/go.mod b/utils/go.mod index 7ce95a8..d5d047a 100644 --- a/utils/go.mod +++ b/utils/go.mod @@ -1,17 +1,17 @@ module github.com/ARM-software/embedded-development-services-client-utils/utils -go 1.25 +go 1.26.0 require ( - github.com/ARM-software/embedded-development-services-client/client v1.104.2 - github.com/ARM-software/golang-utils/utils v1.145.1 - github.com/go-faker/faker/v4 v4.7.0 - github.com/go-logr/logr v1.4.3 - github.com/stretchr/testify v1.11.1 - go.uber.org/atomic v1.11.0 + github.com/ARM-software/embedded-development-services-client/client v1.108.0 + github.com/ARM-software/golang-utils/utils v1.146.0 + github.com/go-faker/faker/v4 v4.12.0 + github.com/go-logr/logr v1.4.4 + github.com/stretchr/testify v1.12.1 + go.uber.org/atomic v1.12.0 go.uber.org/goleak v1.3.0 go.uber.org/mock v0.6.0 - golang.org/x/sync v0.19.0 + golang.org/x/sync v0.25.0 ) require ( @@ -23,7 +23,6 @@ require ( github.com/bmatcuk/doublestar/v3 v3.0.0 // indirect github.com/bombsimon/logrusr/v4 v4.1.0 // indirect github.com/danieljoos/wincred v1.2.2 // indirect - github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/deckarep/golang-set/v2 v2.8.0 // indirect github.com/djherbis/times v1.6.0 // indirect github.com/dolmen-go/contextio v1.0.0 // indirect @@ -58,7 +57,6 @@ require ( github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/perimeterx/marshmallow v1.1.5 // indirect github.com/petermattis/goid v0.0.0-20250813065127-a731cc31b4fe // indirect - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5 // indirect github.com/rs/zerolog v1.34.0 // indirect @@ -80,15 +78,14 @@ require ( github.com/zalando/go-keyring v0.2.6 // indirect go.uber.org/multierr v1.10.0 // indirect go.uber.org/zap v1.27.1 // indirect - go.yaml.in/yaml/v3 v3.0.4 // indirect + go.yaml.in/yaml/v3 v3.0.5 // indirect golang.org/x/crypto v0.41.0 // indirect golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 // indirect - golang.org/x/mod v0.27.0 // indirect + golang.org/x/mod v0.37.0 // indirect golang.org/x/oauth2 v0.30.0 // indirect - golang.org/x/sys v0.35.0 // indirect - golang.org/x/text v0.29.0 // indirect - golang.org/x/tools v0.36.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect + golang.org/x/sys v0.46.0 // indirect + golang.org/x/text v0.40.0 // indirect + golang.org/x/tools v0.47.0 // indirect ) tool go.uber.org/mock/mockgen diff --git a/utils/go.sum b/utils/go.sum index 0307618..aa26a41 100644 --- a/utils/go.sum +++ b/utils/go.sum @@ -1,10 +1,10 @@ al.essio.dev/pkg/shellescape v1.5.1 h1:86HrALUujYS/h+GtqoB26SBEdkWfmMI6FubjXlsXyho= al.essio.dev/pkg/shellescape v1.5.1/go.mod h1:6sIqp7X2P6mThCQ7twERpZTuigpr6KbZWtls1U8I890= bitbucket.org/creachadair/stringset v0.0.9/go.mod h1:t+4WcQ4+PXTa8aQdNKe40ZP6iwesoMFWAxPGd3UGjyY= -github.com/ARM-software/embedded-development-services-client/client v1.104.2 h1:mP+TkW5/QI+7CC4ywFdhFXvLagHKMoD2iovT6uY0jA0= -github.com/ARM-software/embedded-development-services-client/client v1.104.2/go.mod h1:IYv2jcekG1wVeFTHHoHY/A6aTdrTLMD0DkqpmpmFGHg= -github.com/ARM-software/golang-utils/utils v1.145.1 h1:Je8EBVntWpF1SH9vURB5ESPoBqjjpCiWi3CC8WABpX0= -github.com/ARM-software/golang-utils/utils v1.145.1/go.mod h1:253UeNJdOTDnvpEDfJwki4MfgqAR8CaB1FzXFDzjseo= +github.com/ARM-software/embedded-development-services-client/client v1.108.0 h1:Jan2altEBo0Sz+a/aYVIUPaNO0vTOlENBiZ8Gee5hTQ= +github.com/ARM-software/embedded-development-services-client/client v1.108.0/go.mod h1:Q5+38WAP6XtdJpxlHT4oyZTCgLjUBrjbDtYKd8vULhw= +github.com/ARM-software/golang-utils/utils v1.146.0 h1:oIchTSsVrYqQTeMoLk7BPRqFKAB9ZnATRC/SO2gPZB0= +github.com/ARM-software/golang-utils/utils v1.146.0/go.mod h1:253UeNJdOTDnvpEDfJwki4MfgqAR8CaB1FzXFDzjseo= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/DeRuina/timberjack v1.3.9 h1:6UXZ1I7ExPGTX/1UNYawR58LlOJUHKBPiYC7WQ91eBo= github.com/DeRuina/timberjack v1.3.9/go.mod h1:RLoeQrwrCGIEF8gO5nV5b/gMD0QIy7bzQhBUgpp1EqE= @@ -26,8 +26,6 @@ github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/deckarep/golang-set/v2 v2.8.0 h1:swm0rlPCmdWn9mESxKOjWk8hXSqoxOp+ZlfuyaAdFlQ= github.com/deckarep/golang-set/v2 v2.8.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= github.com/djherbis/times v1.6.0 h1:w2ctJ92J8fBvWPxugmXIv7Nz7Q3iDMKNx9v5ocVH20c= @@ -49,13 +47,13 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= -github.com/go-faker/faker/v4 v4.7.0 h1:VboC02cXHl/NuQh5lM2W8b87yp4iFXIu59x4w0RZi4E= -github.com/go-faker/faker/v4 v4.7.0/go.mod h1:u1dIRP5neLB6kTzgyVjdBOV5R1uP7BdxkcWk7tiKQXk= +github.com/go-faker/faker/v4 v4.12.0 h1:yZXxuoQjxN+C2PVgYoDSHGiD9wj6dX1/Ful4p7QQV0k= +github.com/go-faker/faker/v4 v4.12.0/go.mod h1:VFIEwWDd16EdYDLF6NJ5gAAzEp7vz5LgKgJ2iZ17Tdg= github.com/go-http-utils/headers v0.0.0-20181008091004-fed159eddc2a h1:v6zMvHuY9yue4+QkG/HQ/W67wvtQmWJ4SDo9aK/GIno= github.com/go-http-utils/headers v0.0.0-20181008091004-fed159eddc2a/go.mod h1:I79BieaU4fxrw4LMXby6q5OS9XnoR9UIKLOzDFjUmuw= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= -github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= +github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= @@ -160,8 +158,6 @@ github.com/petermattis/goid v0.0.0-20250813065127-a731cc31b4fe h1:vHpqOnPlnkba8i github.com/petermattis/goid v0.0.0-20250813065127-a731cc31b4fe/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU= github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/rickb777/date v1.14.2/go.mod h1:swmf05C+hN+m8/Xh7gEq3uB6QJDNc5pQBWojKdHetOs= @@ -197,13 +193,13 @@ github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3A github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU= github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= +github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= -github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/tklauser/go-sysconf v0.3.15 h1:VE89k0criAymJ/Os65CSn1IXaol+1wrsFHEB8Ol49K4= @@ -216,8 +212,8 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/zalando/go-keyring v0.2.6 h1:r7Yc3+H+Ux0+M72zacZoItR3UDxeWfKTcabvkI8ua9s= github.com/zalando/go-keyring v0.2.6/go.mod h1:2TCrxYrbUNYfNS/Kgy/LSrkSQzZ5UPVH85RwfczwvcI= -go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= -go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/atomic v1.12.0 h1:BvcXdFKuviU4fTL/f+SxdQ5qJX/Jix8pAkgdUcb3XOE= +go.uber.org/atomic v1.12.0/go.mod h1:I6c4cg+6HCxRjfjSsYtApoFILnpc0CGUdGkXVqbYVNk= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= @@ -226,16 +222,16 @@ go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.1 h1:08RqriUEv8+ArZRYSTXy1LeBScaMpVSTBhCeaZYfMYc= go.uber.org/zap v1.27.1/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= -go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= -go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 h1:R9PFI6EUdfVKgwKjZef7QIwGcBKu86OEFpJ9nUEP2l4= golang.org/x/exp v0.0.0-20250718183923-645b1fa84792/go.mod h1:A+z0yzpGtvnG90cToK5n2tu8UJVP2XUATh+r+sfOOOc= -golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ= -golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc= +golang.org/x/mod v0.37.0 h1:vF1DjpVEshcIqoEaauuHebaLk1O1forxjxBaVn884JQ= +golang.org/x/mod v0.37.0/go.mod h1:m8S8VeM9r4dzDwjrKO0a1sZP3YjeMamRRlD+fmR2Q/0= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= @@ -244,8 +240,8 @@ golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= -golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sync v0.25.0 h1:dJnifr0nMV8/SBnBvdo4eSGGnrc3O4FFx6IqvtLcmRs= +golang.org/x/sync v0.25.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -272,17 +268,17 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= -golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw= +golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk= -golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4= +golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs= +golang.org/x/text v0.40.0/go.mod h1:hpnzDAfGV753zIKo+wk3u1bVKCGPbrnF7+7LBF/UHVY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg= -golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s= +golang.org/x/tools v0.47.0 h1:7Kn5x/d1svx/PzryTsqeoZN4TZwqeH5pGWjefhLi/1Q= +golang.org/x/tools v0.47.0/go.mod h1:dFHnyTvFWY212G+h7ZY4Vsp/K3U4/7W9TyVaAul8uCA= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -292,8 +288,6 @@ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miE google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From 19da2924764c646def7bf2ca5e5127b5ba442428 Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Tue, 17 Nov 2026 18:07:55 +0000 Subject: [PATCH 2/7] :gear: Align CI flows --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/dependabot.yml | 6 +++--- .github/workflows/release.yml | 24 ++++++++++++++++++------ changes/20261117180018.misc | 2 +- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7246966..ed6e7da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ concurrency: # Set environment variables available in all jobs and steps env: go_version: "1.27.3" - python_version: "3.9" + python_version: "3.11" jobs: # Check that a news file has been added to this branch when a PR is created @@ -31,13 +31,13 @@ jobs: - uses: actions/setup-python@v7 with: python-version: ${{ env.python_version }} + - uses: FranzDiebold/github-env-vars-action@v2 - name: Install CI/CD tools - run: pip install continuous-delivery-scripts && pip list + run: python -m pip install --upgrade 'continuous-delivery-scripts>=4.8.0' && pip list - name: Assert news - run: bash ./scripts/setup_github.sh && cd-assert-news -b $GIT_BRANCH + run: cd-assert-news -b "${CI_ACTION_REF_NAME}" env: GIT_TOKEN: ${{ secrets.GIT_SECRET }} - GIT_BRANCH: ${{ github.head_ref || github.ref }} - name: Report failure if needed if: ${{ failure() }} run: | diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index f51649a..c3003a8 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -10,7 +10,7 @@ permissions: # Set environment variables available in all jobs and steps env: - python_version: "3.10" + python_version: "3.11" jobs: update-go: uses: ./.github/workflows/update-utils.yml @@ -29,7 +29,7 @@ jobs: python-version: ${{ env.python_version }} - uses: FranzDiebold/github-env-vars-action@v2 - name: Install CI/CD tools - run: pip install continuous-delivery-scripts && pip list + run: python -m pip install --upgrade 'continuous-delivery-scripts>=4.8.0' && pip list - name: Dependabot metadata id: dependabot-metadata uses: dependabot/fetch-metadata@v3.1.0 @@ -46,7 +46,7 @@ jobs: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Assert news - run: bash ./scripts/setup_github.sh && cd-assert-news -b ${CI_ACTION_REF_NAME} + run: cd-assert-news -b "${CI_ACTION_REF_NAME}" env: GIT_TOKEN: ${{ secrets.GIT_SECRET }} - name: Auto-merge the PR diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f18540a..84418cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: GitHub Release env: go_version: "1.27.3" - python_version: "3.10" + python_version: "3.11" on: workflow_dispatch: @@ -24,7 +24,9 @@ jobs: id: check run: | CHANGES=$(git show main:changes/ 2>/dev/null | grep -e .feature -e .bugfix -e .major -e .doc -e .misc) - echo "::set-output name=changes::$CHANGES" + echo "changes<> "$GITHUB_OUTPUT" + echo "$CHANGES" >> "$GITHUB_OUTPUT" + echo "EOF" >> "$GITHUB_OUTPUT" continue-on-error: true # in case '2>/dev/null' doesn't work release: @@ -41,19 +43,29 @@ jobs: uses: actions/setup-go@v7 with: go-version: ${{ env.go_version }} + cache: true + cache-dependency-path: '**/go.sum' - name: Setup python uses: actions/setup-python@v7 with: python-version: ${{ env.python_version }} + - uses: FranzDiebold/github-env-vars-action@v2 + - name: Install CI/CD tools + run: python -m pip install --upgrade 'continuous-delivery-scripts>=4.8.0' && pip list + - name: Install goreleaser + uses: goreleaser/goreleaser-action@v7 + with: + install-only: true + distribution: goreleaser + version: latest + - name: Install Syft + uses: anchore/sbom-action/download-syft@v0 - name: Download Go dependencies for every module uses: ARM-software/golang-utils/actions/go-multimodules@v1.172.0 with: task: download - - uses: FranzDiebold/github-env-vars-action@v2 - - name: Install CI/CD tools - run: pip install continuous-delivery-scripts>=2.7 && pip list - name: Tag and release - run: bash ./scripts/setup_github.sh && cd-tag-and-release -b ${CI_ACTION_REF_NAME} -t ${{ github.event.inputs.release_type }} -vv + run: cd-tag-and-release -b "${CI_ACTION_REF_NAME}" -t ${{ github.event.inputs.release_type }} -vv env: # Using a specific token because GITHUB_TOKEN is not available https://github.com/marketplace/actions/workflow-dispatch#token GIT_TOKEN: ${{ secrets.GIT_SECRET }} diff --git a/changes/20261117180018.misc b/changes/20261117180018.misc index a8f47e2..9d13bbb 100644 --- a/changes/20261117180018.misc +++ b/changes/20261117180018.misc @@ -1 +1 @@ -:gear: Update CI workflows to reuse golang-utils Go-module actions for build, test, analysis, and dependency download steps. +:gear: Update CI workflows to align the assert-news and release flows with golang-utils and reuse shared Go-module actions for build, test, analysis, and dependency download steps. From aa03478d9c6c17aedd265369429dc4eee48f0211 Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Tue, 17 Nov 2026 18:10:10 +0000 Subject: [PATCH 3/7] :gear: Update workflow Python versions --- .github/workflows/build-and-test.yml | 2 +- .github/workflows/update-utils.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2c33b3d..c5efcb2 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -3,7 +3,7 @@ name: Build and Test # Set environment variables available in all jobs and steps env: go_version: "1.27.3" - python_version: "3.10" + python_version: "3.11" on: workflow_call: diff --git a/.github/workflows/update-utils.yml b/.github/workflows/update-utils.yml index d0f9e03..372ffc5 100644 --- a/.github/workflows/update-utils.yml +++ b/.github/workflows/update-utils.yml @@ -2,7 +2,7 @@ name: Update Library # Set environment variables available in all jobs and steps env: - python_version: "3.9" + python_version: "3.11" go_module: "utils" on: From d4ca3eac92045cdb39a7b6dfeca6f45634b434e8 Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Tue, 17 Nov 2026 18:21:00 +0000 Subject: [PATCH 4/7] :gear: Tolerate update-go failures --- .github/workflows/update-utils.yml | 1 + changes/20261117180018.misc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-utils.yml b/.github/workflows/update-utils.yml index 372ffc5..6e6bcd6 100644 --- a/.github/workflows/update-utils.yml +++ b/.github/workflows/update-utils.yml @@ -43,6 +43,7 @@ jobs: persist-credentials: false path: ./.github/workflows/update-go-action - name: Update Go + continue-on-error: true uses: ./.github/workflows/update-go-action with: dockerfile: Dockerfile.utils diff --git a/changes/20261117180018.misc b/changes/20261117180018.misc index 9d13bbb..82ce3b2 100644 --- a/changes/20261117180018.misc +++ b/changes/20261117180018.misc @@ -1 +1 @@ -:gear: Update CI workflows to align the assert-news and release flows with golang-utils and reuse shared Go-module actions for build, test, analysis, and dependency download steps. +:gear: Update CI workflows to align the assert-news and release flows with golang-utils, reuse shared Go-module actions, and continue when the update-go automation cannot push branch changes. From 4c30c2663fa019b6370d9b48f4cc0b33877ceab5 Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Tue, 17 Nov 2026 18:24:18 +0000 Subject: [PATCH 5/7] :bug: Fix staticcheck formatting issues --- utils/errors/errors.go | 6 +++--- utils/messages/format.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/errors/errors.go b/utils/errors/errors.go index 79caa25..0c8eb5f 100644 --- a/utils/errors/errors.go +++ b/utils/errors/errors.go @@ -58,9 +58,9 @@ func FetchAPIErrorDescriptionWithContext(ctx context.Context, resp *_http.Respon apiErrorMessage := strings.Builder{} apiErrorMessage.WriteString("API call error") if code, _ := errorResponse.GetHttpStatusCodeOk(); !reflection.IsEmpty(code) { - apiErrorMessage.WriteString(fmt.Sprintf(" (%v)", *code)) + _, _ = fmt.Fprintf(&apiErrorMessage, " (%v)", *code) } - apiErrorMessage.WriteString(fmt.Sprintf(" [request-id: %v] ", errorResponse.GetRequestId())) + _, _ = fmt.Fprintf(&apiErrorMessage, " [request-id: %v] ", errorResponse.GetRequestId()) apiErrorMessage.WriteString(errorResponse.GetMessage()) if fields, has := errorResponse.GetFieldsOk(); has { apiErrorMessage.WriteString(" [") @@ -75,7 +75,7 @@ func FetchAPIErrorDescriptionWithContext(ctx context.Context, resp *_http.Respon apiErrorMessage.WriteString(",") } field := fields[i] - apiErrorMessage.WriteString(fmt.Sprintf("%v: %v (%v)", field.GetFieldName(), field.GetMessage(), field.GetFieldPath())) + _, _ = fmt.Fprintf(&apiErrorMessage, "%v: %v (%v)", field.GetFieldName(), field.GetMessage(), field.GetFieldPath()) start = false } apiErrorMessage.WriteString("]") diff --git a/utils/messages/format.go b/utils/messages/format.go index 177d6fd..8dcacfd 100644 --- a/utils/messages/format.go +++ b/utils/messages/format.go @@ -61,7 +61,7 @@ func (f *MessageFormatter) FormatMessage(msg IMessage) (s string, err error) { var b strings.Builder if f.options.source { if source, ok := msg.GetSourceOk(); ok { - _, err = b.WriteString(fmt.Sprintf("[%s] ", field.OptionalString(source, ""))) + _, err = fmt.Fprintf(&b, "[%s] ", field.OptionalString(source, "")) if err != nil { err = commonerrors.WrapError(commonerrors.ErrUnexpected, err, "") return @@ -70,7 +70,7 @@ func (f *MessageFormatter) FormatMessage(msg IMessage) (s string, err error) { } if f.options.timestamp { if ctime, ok := msg.GetCtimeOk(); ok { - _, err = b.WriteString(fmt.Sprintf("(%s) ", *ctime)) + _, err = fmt.Fprintf(&b, "(%s) ", *ctime) if err != nil { err = commonerrors.WrapError(commonerrors.ErrUnexpected, err, "") return @@ -79,7 +79,7 @@ func (f *MessageFormatter) FormatMessage(msg IMessage) (s string, err error) { } if f.options.severity { if severity, ok := msg.GetSeverityOk(); ok { - _, err = b.WriteString(fmt.Sprintf("%s ", field.OptionalString(severity, ""))) + _, err = fmt.Fprintf(&b, "%s ", field.OptionalString(severity, "")) if err != nil { err = commonerrors.WrapError(commonerrors.ErrUnexpected, err, "") return @@ -89,7 +89,7 @@ func (f *MessageFormatter) FormatMessage(msg IMessage) (s string, err error) { if message, ok := msg.GetMessageOk(); ok { if b.Len() > 0 { - _, err = b.WriteString(fmt.Sprintf(": %s", field.OptionalString(message, ""))) + _, err = fmt.Fprintf(&b, ": %s", field.OptionalString(message, "")) if err != nil { err = commonerrors.WrapError(commonerrors.ErrUnexpected, err, "") return From 68b863df2291ec18068b30eca3747acb3b495d57 Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Tue, 17 Nov 2026 18:30:48 +0000 Subject: [PATCH 6/7] :gear: Fix workflow test coverage --- .github/workflows/build-and-test.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c5efcb2..28510fc 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -81,12 +81,6 @@ jobs: version: latest working-directory: ${{ matrix.go-module }} args: "--verbose --output.text.print-issued-lines --output.text.print-linter-name --output.tab.colors --max-issues-per-linter 0 --max-same-issues 0" - - name: Set up gotestsum - uses: ARM-software/golang-utils/actions/setup-gotestsum@v1.172.0 - name: Test ${{ matrix.go-module }} on ${{ matrix.os }} - uses: ARM-software/golang-utils/actions/test-go-modules@v1.172.0 - with: - modules: ./${{ matrix.go-module }} - build-tags: "" - artifact-prefix: "${{ matrix.go-module }}-${{ matrix.os }}-" - report-name: "${{ matrix.go-module }} tests on ${{ matrix.os }}" + run: go test -race -cover -v ./... + working-directory: ${{ matrix.go-module }} From 151e5890ca571b7a4889948c3e491698f42fb028 Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Tue, 17 Nov 2026 18:32:30 +0000 Subject: [PATCH 7/7] :gear: Add Go workspace --- .github/workflows/build-and-test.yml | 12 ++++++++++-- changes/20261117180018.misc | 2 +- go.work | 3 +++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 go.work diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 28510fc..732805e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -47,6 +47,8 @@ jobs: uses: actions/setup-go@v7 with: go-version: ${{ env.go_version }} + - name: Sync workspace + uses: ARM-software/golang-utils/actions/sync-go-workspace@v1.172.0 - if: ${{ startsWith(matrix.os, 'macOS') }} run: echo "CACHE_PATH=${{ env.go_cache_macOS_path }}" >> $GITHUB_ENV @@ -81,6 +83,12 @@ jobs: version: latest working-directory: ${{ matrix.go-module }} args: "--verbose --output.text.print-issued-lines --output.text.print-linter-name --output.tab.colors --max-issues-per-linter 0 --max-same-issues 0" + - name: Set up gotestsum + uses: ARM-software/golang-utils/actions/setup-gotestsum@v1.172.0 - name: Test ${{ matrix.go-module }} on ${{ matrix.os }} - run: go test -race -cover -v ./... - working-directory: ${{ matrix.go-module }} + uses: ARM-software/golang-utils/actions/test-go-modules@v1.172.0 + with: + modules: ./${{ matrix.go-module }} + build-tags: "" + artifact-prefix: "${{ matrix.go-module }}-${{ matrix.os }}-" + report-name: "${{ matrix.go-module }} tests on ${{ matrix.os }}" diff --git a/changes/20261117180018.misc b/changes/20261117180018.misc index 82ce3b2..a5386ce 100644 --- a/changes/20261117180018.misc +++ b/changes/20261117180018.misc @@ -1 +1 @@ -:gear: Update CI workflows to align the assert-news and release flows with golang-utils, reuse shared Go-module actions, and continue when the update-go automation cannot push branch changes. +:gear: Update CI workflows to align the assert-news and release flows with golang-utils, add a root Go workspace, reuse shared Go-module actions, and continue when the update-go automation cannot push branch changes. diff --git a/go.work b/go.work new file mode 100644 index 0000000..83fe9d4 --- /dev/null +++ b/go.work @@ -0,0 +1,3 @@ +go 1.26.0 + +use ./utils