Skip to content

Commit 18ec556

Browse files
committed
github: set the GOPROXY for all actions that need it
Workaround for expired cert at source of indirect dependency go.opencensus.io/trace
1 parent 3a33aa4 commit 18ec556

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/gitlab-helper.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
prepare:
1717
name: "🔍 Check source preparation and test configs"
1818
runs-on: ubuntu-latest
19+
env:
20+
# workaround for expired cert at source of indirect dependency
21+
# (go.opencensus.io/trace)
22+
GOPROXY: "https://proxy.golang.org|direct"
1923
steps:
2024

2125
- name: Set up Go 1.21

.github/workflows/test-osbuild-composer-integration.yml

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
runs-on: ubuntu-latest
5454
container:
5555
image: registry.fedoraproject.org/fedora:latest
56+
env:
57+
# workaround for expired cert at source of indirect dependency
58+
# (go.opencensus.io/trace)
59+
GOPROXY: "https://proxy.golang.org|direct"
5660
outputs:
5761
# Define job outputs
5862
# (see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/passing-information-between-jobs#example-defining-outputs-for-a-job)

.github/workflows/tests.yml

+27
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
fail-fast: false # if one fails, keep the other(s) running
2424
name: "🛃 Unit tests (Fedora ${{ matrix.fedora_version }})"
2525
runs-on: ubuntu-latest
26+
env:
27+
# workaround for expired cert at source of indirect dependency
28+
# (go.opencensus.io/trace)
29+
GOPROXY: "https://proxy.golang.org|direct"
2630

2731
steps:
2832
- name: Check out code into the Go module directory
@@ -36,6 +40,10 @@ jobs:
3640
container-resolver-tests:
3741
name: "🛃 Container resolver tests"
3842
runs-on: ubuntu-latest
43+
env:
44+
# workaround for expired cert at source of indirect dependency
45+
# (go.opencensus.io/trace)
46+
GOPROXY: "https://proxy.golang.org|direct"
3947

4048
steps:
4149
- name: Set up Go 1.21
@@ -76,6 +84,9 @@ jobs:
7684
image: quay.io/centos/centos:${{ matrix.centos_stream.image_tag }}
7785
env:
7886
GOFLAGS: "-tags=exclude_graphdriver_btrfs"
87+
# workaround for expired cert at source of indirect dependency
88+
# (go.opencensus.io/trace)
89+
GOPROXY: "https://proxy.golang.org|direct"
7990

8091
steps:
8192
- name: Install dnf plugins
@@ -114,6 +125,10 @@ jobs:
114125
lint:
115126
name: "⌨ Lint"
116127
runs-on: ubuntu-latest
128+
env:
129+
# workaround for expired cert at source of indirect dependency
130+
# (go.opencensus.io/trace)
131+
GOPROXY: "https://proxy.golang.org|direct"
117132
steps:
118133
- name: Set up Go 1.21
119134
uses: actions/setup-go@v5
@@ -146,6 +161,10 @@ jobs:
146161
shellcheck:
147162
name: "🐚 Shellcheck"
148163
runs-on: ubuntu-latest
164+
env:
165+
# workaround for expired cert at source of indirect dependency
166+
# (go.opencensus.io/trace)
167+
GOPROXY: "https://proxy.golang.org|direct"
149168
steps:
150169
- uses: actions/checkout@v4
151170
with:
@@ -162,6 +181,10 @@ jobs:
162181
python-test:
163182
name: "🐍 pytest (imgtestlib and test scripts)"
164183
runs-on: ubuntu-latest
184+
env:
185+
# workaround for expired cert at source of indirect dependency
186+
# (go.opencensus.io/trace)
187+
GOPROXY: "https://proxy.golang.org|direct"
165188
container:
166189
image: registry.fedoraproject.org/fedora:latest
167190
steps:
@@ -181,6 +204,10 @@ jobs:
181204
python-lint:
182205
name: "🐍 Lint (test scripts)"
183206
runs-on: ubuntu-latest
207+
env:
208+
# workaround for expired cert at source of indirect dependency
209+
# (go.opencensus.io/trace)
210+
GOPROXY: "https://proxy.golang.org|direct"
184211
container:
185212
image: registry.fedoraproject.org/fedora:latest
186213
steps:

0 commit comments

Comments
 (0)