From 04540b93ac1a93010ac1d9f28bd3d01a0d684474 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Tue, 7 Feb 2023 18:54:39 +0100 Subject: [PATCH 1/3] Bump Go versions Deprecate Go 1.17.x and add Go 1.20.x This is may also fix the issues with staticcheck. --- .github/workflows/go-windows.yml | 2 +- .github/workflows/go.yml | 2 +- .github/workflows/vulncheck.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go-windows.yml b/.github/workflows/go-windows.yml index 28e6182b6..c930d4225 100644 --- a/.github/workflows/go-windows.yml +++ b/.github/workflows/go-windows.yml @@ -17,7 +17,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.18.x, 1.19.x] + go-version: [1.19.x, 1.20.x] os: [windows-latest] steps: - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 004d08258..bd393f841 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.17.x, 1.18.x, 1.19.x] + go-version: [1.18.x, 1.19.x, 1.20.x] os: [ubuntu-latest] steps: - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} diff --git a/.github/workflows/vulncheck.yml b/.github/workflows/vulncheck.yml index 7b8dfe813..1d55f911c 100644 --- a/.github/workflows/vulncheck.yml +++ b/.github/workflows/vulncheck.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ 1.19 ] + go-version: [ 1.20.x ] steps: - name: Check out code into the Go module directory uses: actions/checkout@v3 From 4e177d15b4e36af6946690bbcfc00b61bb45df30 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Tue, 7 Feb 2023 18:57:22 +0100 Subject: [PATCH 2/3] Upgrade from deprecrated codeQL as well --- .github/workflows/codeql.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 9771ca0f4..63fc0fca0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,7 +27,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 # Override language selection by uncommenting this and choosing your languages # with: # languages: go, javascript, csharp, python, cpp, java @@ -35,7 +35,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -49,4 +49,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 From cc8eb54743c3e5451f91ff45ba4363cdb86d26f8 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Tue, 7 Feb 2023 19:01:06 +0100 Subject: [PATCH 3/3] Staticcheck doesn't work on Go 1.18 :/ --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bd393f841..2b7fabc4e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.18.x, 1.19.x, 1.20.x] + go-version: [1.19.x, 1.20.x] os: [ubuntu-latest] steps: - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}