From 51004c551337809c0d1795e36fe0c0fcbb53438b Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Mon, 29 Jul 2024 13:35:05 +0200 Subject: [PATCH] Use Go `1.22` in GitHub Actions Use latest Go version `1.22` for any Go related GitHub Action. --- .github/actions/setup/action.yaml | 2 +- .github/workflows/release.yaml | 5 ++--- .github/workflows/security.yml | 2 +- .github/workflows/test.yaml | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index 843bd696..642d9ddf 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -5,7 +5,7 @@ inputs: go-version: description: "The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks." required: false - default: "1.21" + default: "1.22.x" runs: using: composite steps: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d67ace47..ccf3766b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,7 +5,7 @@ on: inputs: release: description: 'Desired tag' - required: true + required: true tags: description: 'Previous tag' required: true @@ -51,7 +51,7 @@ jobs: prerelease: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + - name: Generate and upload release.yaml env: REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} @@ -67,4 +67,3 @@ jobs: -a sha=${{ github.sha }} \ -a run_id=${{ github.run_id }} \ -a run_attempt=${{ github.run_attempt }} - diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 062d0e83..24151b59 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: '1.21.x' + go-version: 1.22.x check-latest: true - name: Run gosec diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5111463f..b4c29c8d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/setup with: - go-version: '1.21.x' + go-version: 1.22.x - name: test-unit run: make test-unit integration: @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/setup with: - go-version: '1.21.x' + go-version: 1.22.x - name: test-integration run: make test-integration