🌱 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 contents: read
env: env:
GO_VERSION: 1.21 GO_VERSION: 1.22
jobs: jobs:
analyze: analyze:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # 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 WORKDIR /src/scorecard
COPY . ./ COPY . ./

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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