git.iko.soy/typeable/oauth2-proxy
on master help sign in
ci: ensure we always use the latest patch version of golang (#3349)

Signed-off-by: Jan Larwig <jan@larwig.com>

commit06f1234b69676c63dae998a3539992c17700c9cc authorJan Larwig <jan@larwig.com> dateThu 26 Feb 2026, 14:43 (7 months ago) parenta279fec
3 files changed+19−6
.github/workflows/ci.yml+8−2 .github/workflows/publish-release.yml+10−3 go.mod+1−1
.github/workflows/ci.yml+8−2
@@ -20,11 +20,17 @@ jobs:
2020 - name: Check out code
2121 uses: actions/checkout@v6
2222
23+ - name: Get Go version
24+ run: |
25+ version=$(grep "^go " go.mod | cut -d' ' -f2)
26+ echo "version=${version}" >> "$GITHUB_OUTPUT"
27+ id: go-version
28+
2329 - name: Set up Go
2430 uses: actions/setup-go@v6
2531 with:
26− go-version-file: go.mod
27− id: go
32+ go-version: ${{ steps.go-version.outputs.version }}
33+ check-latest: true
2834
2935 - name: Install golangci-lint
3036 env:
.github/workflows/publish-release.yml+10−3
@@ -42,11 +42,18 @@ jobs:
4242 git tag -a "${version}" -m "Release ${version}"
4343 echo "version=${version}" >> $GITHUB_OUTPUT
4444 id: tag
45−
46− - name: Set up go
45+
46+ - name: Get Go version
47+ run: |
48+ version=$(grep "^go " go.mod | cut -d' ' -f2)
49+ echo "version=${version}" >> "$GITHUB_OUTPUT"
50+ id: go-version
51+
52+ - name: Set up Go
4753 uses: actions/setup-go@v6
4854 with:
49− go-version-file: go.mod
55+ go-version: ${{ steps.go-version.outputs.version }}
56+ check-latest: true
5057
5158 - name: Get dependencies
5259 env:
go.mod+1−1
@@ -1,6 +1,6 @@
11module github.com/oauth2-proxy/oauth2-proxy/v7
22
3−go 1.25.6
3+go 1.25.0
44
55require (
66 cloud.google.com/go/compute/metadata v0.9.0