ci: ensure we always use the latest patch version of golang (#3349)

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig 2026-02-26 14:43:52 +01:00 committed by GitHub
parent a279fece02
commit 06f1234b69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 6 deletions

View File

@ -20,11 +20,17 @@ jobs:
- name: Check out code
uses: actions/checkout@v6
- name: Get Go version
run: |
version=$(grep "^go " go.mod | cut -d' ' -f2)
echo "version=${version}" >> "$GITHUB_OUTPUT"
id: go-version
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
id: go
go-version: ${{ steps.go-version.outputs.version }}
check-latest: true
- name: Install golangci-lint
env:

View File

@ -42,11 +42,18 @@ jobs:
git tag -a "${version}" -m "Release ${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
id: tag
- name: Set up go
- name: Get Go version
run: |
version=$(grep "^go " go.mod | cut -d' ' -f2)
echo "version=${version}" >> "$GITHUB_OUTPUT"
id: go-version
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
go-version: ${{ steps.go-version.outputs.version }}
check-latest: true
- name: Get dependencies
env:

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/oauth2-proxy/oauth2-proxy/v7
go 1.25.6
go 1.25.0
require (
cloud.google.com/go/compute/metadata v0.9.0