Skip to content

Commit 464a473

Browse files
authored
Merge pull request #4420 from apostasie/2025-07-github-token
[CI]: pass github token to tasks querying the API
2 parents fc2f973 + 4cebcaf commit 464a473

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

.github/workflows/job-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141

4242
- if: ${{ inputs.canary }}
4343
name: "Init (canary): retrieve GO_VERSION"
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4446
run: |
4547
. ./hack/github/action-helpers.sh
4648
latest_go="$(. ./hack/provisioning/version/fetch.sh; go::canary::for::go-setup)"

.github/workflows/job-lint-go.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545

4646
- if: ${{ inputs.canary }}
4747
name: "Init (canary): retrieve GO_VERSION"
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4850
run: |
4951
latest_go="$(. ./hack/provisioning/version/fetch.sh; go::canary::for::go-setup)"
5052
printf "GO_VERSION=%s\n" "$latest_go" >> "$GITHUB_ENV"

.github/workflows/job-test-in-host.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777

7878
- if: ${{ inputs.canary }}
7979
name: "Init (canary): retrieve latest go and containerd"
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8082
run: |
8183
latest_go="$(. ./hack/provisioning/version/fetch.sh; go::canary::for::go-setup)"
8284
latest_containerd="$(. ./hack/provisioning/version/fetch.sh; github::project::latest "containerd/containerd")"

.github/workflows/job-test-unit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
# If canary is requested, check for the latest unstable release
5454
- if: ${{ inputs.canary }}
5555
name: "Init (canary): retrieve GO_VERSION"
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5658
run: |
5759
latest_go="$(. ./hack/provisioning/version/fetch.sh; go::canary::for::go-setup)"
5860
printf "GO_VERSION=%s\n" "$latest_go" >> "$GITHUB_ENV"

.github/workflows/workflow-tigron.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
fetch-depth: 100
3838
- if: ${{ matrix.canary }}
3939
name: "Init (canary): retrieve GO_VERSION"
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4042
run: |
4143
latest_go="$(. ./hack/provisioning/version/fetch.sh; go::canary::for::go-setup)"
4244
printf "GO_VERSION=%s\n" "$latest_go" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)