🌱 Update Go toolchain to 1.22 (#3859)

* update workflows to use go 1.22

Signed-off-by: Spencer Schrock <sschrock@google.com>

* update tools go.mod to 1.22.

no one imports this, so we can bump it now and
avoid issues in the future where we need to upgrade.

Signed-off-by: Spencer Schrock <sschrock@google.com>

* bump docker files

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
This commit is contained in:
Spencer Schrock 2024-02-07 11:36:37 -08:00 committed by GitHub
parent ca944e8169
commit 64d330790d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 19 additions and 19 deletions

View File

@ -37,7 +37,7 @@ permissions:
contents: read
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
analyze:

View File

@ -23,7 +23,7 @@ on:
- main
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
docs_only_check:

View File

@ -25,7 +25,7 @@ on:
- main
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
gitlab-integration-trusted:

View File

@ -23,7 +23,7 @@ permissions:
contents: read
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
goreleaser:

View File

@ -24,7 +24,7 @@ permissions:
contents: read
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
approve:

View File

@ -12,7 +12,7 @@ permissions:
pull-requests: read # Use with `only-new-issues` option.
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
golangci:

View File

@ -27,7 +27,7 @@ on:
env:
PROTOC_VERSION: 21.6
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
unit-test:

View File

@ -22,7 +22,7 @@ on:
- main
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
publishimage:

View File

@ -6,7 +6,7 @@ on:
permissions: read-all
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
share-link:

View File

@ -8,7 +8,7 @@ on:
permissions: read-all
env:
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
# Generate ldflags dynamically.

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src/scorecard
COPY . ./

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21.6@sha256:76aadd914a29a2ee7a6b0f3389bb2fdb87727291d688e1d972abe6c0fa6f2ee0 AS base
FROM golang:1.22.0@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./

View File

@ -1,6 +1,6 @@
module github.com/ossf/scorecard/tools
go 1.21
go 1.22
require (
github.com/golang/mock v1.6.0