Skip to content

Commit

Permalink
fix: set go module directive to 1.22.0 (sigstore#1878)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Petgrave <[email protected]>
  • Loading branch information
dnwe authored and ramonpetgrave64 committed Dec 13, 2024
1 parent 8281254 commit 8fc4eeb
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 17 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
name: CodeQL
on:
push:
branches: [ main ]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main]

permissions:
contents: read
Expand All @@ -29,19 +29,22 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'go' ]
language: ["go"]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Get Go version directive from go.mod as major.minor
id: go_version
run: |
awk -F'[ .]' '/^go /{print "version=" $2 "." $3; exit}' go.mod >>"${GITHUB_OUTPUT}"
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: go.mod
go-version: "${{ steps.go_version.outputs.version }}"
check-latest: true

# Initializes the CodeQL tools for scanning.
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ name: test

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

permissions:
contents: read
Expand All @@ -31,10 +31,15 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Get Go version directive from go.mod as major.minor
id: go_version
run: |
awk -F'[ .]' '/^go /{print "version=" $2 "." $3; exit}' go.mod >>"${GITHUB_OUTPUT}"
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: go.mod
go-version: "${{ steps.go_version.outputs.version }}"
check-latest: true

- name: Cache Modules
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/sigstore/sigstore

go 1.22.8
go 1.22.0

require (
github.com/coreos/go-oidc/v3 v3.11.0
Expand Down
2 changes: 1 addition & 1 deletion hack/tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/sigstore/sigstore/hack/tools

go 1.22.7
go 1.22.0

require (
github.com/AdaLogics/go-fuzz-headers v0.0.0-20211123104302-8fea106b46e2
Expand Down
2 changes: 1 addition & 1 deletion pkg/signature/kms/aws/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/sigstore/sigstore/pkg/signature/kms/aws

replace github.com/sigstore/sigstore => ../../../../

go 1.22.8
go 1.22.0

require (
github.com/aws/aws-sdk-go v1.55.5
Expand Down
2 changes: 1 addition & 1 deletion pkg/signature/kms/azure/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/sigstore/sigstore/pkg/signature/kms/azure

replace github.com/sigstore/sigstore => ../../../../

go 1.22.8
go 1.22.0

require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/signature/kms/gcp/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/sigstore/sigstore/pkg/signature/kms/gcp

replace github.com/sigstore/sigstore => ../../../../

go 1.22.8
go 1.22.0

require (
cloud.google.com/go/kms v1.20.1
Expand Down
2 changes: 1 addition & 1 deletion pkg/signature/kms/hashivault/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/sigstore/sigstore/pkg/signature/kms/hashivault

replace github.com/sigstore/sigstore => ../../../../

go 1.22.8
go 1.22.0

require (
github.com/hashicorp/vault/api v1.15.0
Expand Down
3 changes: 2 additions & 1 deletion test/fuzz/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/sigstore/sigstore/test/fuzz

go 1.22.7
go 1.22.0

require (
github.com/AdaLogics/go-fuzz-headers v0.0.0-20211102141018-f7be0cbad29c
github.com/dvyukov/go-fuzz v0.0.0-20210914135545-4980593459a1
Expand Down

0 comments on commit 8fc4eeb

Please sign in to comment.