Skip to content

Commit 2e01842

Browse files
committed
Remove GOTOOLCHAIN from most GitHub workflows
The "actions/setup-go" action behaves correctly since v6.
1 parent 71a3969 commit 2e01842

File tree

5 files changed

+2
-19
lines changed

5 files changed

+2
-19
lines changed

.github/workflows/codeql-analysis.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ on:
99
schedule:
1010
- cron: '10 18 * * 2'
1111

12-
env:
13-
# Use the Go toolchain installed by setup-go
14-
# https://github.com/actions/setup-go/issues/457
15-
GOTOOLCHAIN: local
16-
1712
jobs:
1813
analyze:
1914
if: ${{ github.repository == 'CrunchyData/postgres-operator' }}

.github/workflows/govulncheck.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
env:
1111
# Use the Go toolchain installed by setup-go
1212
# https://github.com/actions/setup-go/issues/457
13+
#
14+
# TODO(govulncheck): Remove when "golang/govulncheck-action" uses "actions/setup-go" v6 or newer
1315
GOTOOLCHAIN: local
1416

1517
jobs:

.github/workflows/lint.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: Linters
33
on:
44
pull_request:
55

6-
env:
7-
# Use the Go toolchain installed by setup-go
8-
# https://github.com/actions/setup-go/issues/457
9-
GOTOOLCHAIN: local
10-
116
jobs:
127
golangci-lint:
138
runs-on: ubuntu-24.04

.github/workflows/test.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ on:
66
branches:
77
- main
88

9-
env:
10-
# Use the Go toolchain installed by setup-go
11-
# https://github.com/actions/setup-go/issues/457
12-
GOTOOLCHAIN: local
13-
149
jobs:
1510
go-test:
1611
runs-on: ubuntu-24.04

.github/workflows/trivy.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
- main
99

1010
env:
11-
# Use the Go toolchain installed by setup-go
12-
# https://github.com/actions/setup-go/issues/457
13-
GOTOOLCHAIN: local
14-
1511
# Use the committed Trivy configuration files.
1612
TRIVY_IGNOREFILE: .trivyignore.yaml
1713
TRIVY_SECRET_CONFIG: trivy-secret.yaml

0 commit comments

Comments
 (0)