Skip to content

Commit e85f0ae

Browse files
committed
ci: use Buildkite secret for mise GitHub access
1 parent 65ae18e commit e85f0ae

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

.buildkite/hooks/pre-command

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,3 @@ mkdir -p \
1212
export GOCACHE="${cache_root}/go/build"
1313
export GOMODCACHE="${cache_root}/go/pkg/mod"
1414
export GOLANGCI_LINT_CACHE="${cache_root}/golangci-lint"
15-
16-
# CI pins tool versions in mise.toml/mise.lock, but the go: backend used for
17-
# go-cover-treemap does not support locked-mode URLs. Skip the GitHub API-backed
18-
# attestation/SLSA checks instead so reruns do not fail on unauthenticated rate
19-
# limits inside the mise plugin.
20-
export MISE_AQUA_GITHUB_ATTESTATIONS=false
21-
export MISE_AQUA_SLSA=false
22-
export MISE_GITHUB_ATTESTATIONS=false
23-
export MISE_GITHUB_GITHUB_ATTESTATIONS=false
24-
export MISE_GITHUB_SLSA=false
25-
export MISE_SLSA=false

.buildkite/pipeline.release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ steps:
1515
artifact_paths:
1616
- dist/**/*
1717
secrets:
18+
- MISE_GITHUB_TOKEN
1819
- POSTHOG_API_KEY
1920
- OAUTH_CLIENT_ID
2021
command: 'GOOS="{{matrix}}" .buildkite/release.sh release --clean --split'
@@ -39,6 +40,7 @@ steps:
3940
env:
4041
AWS_REGION: us-east-1
4142
secrets:
43+
- MISE_GITHUB_TOKEN
4244
- POSTHOG_API_KEY
4345
- OAUTH_CLIENT_ID
4446
plugins:

.buildkite/pipeline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ cache: ".buildkite/cache-volume"
99
steps:
1010
- name: ":golangci-lint: lint"
1111
command: 'golangci-lint run --verbose --timeout 3m'
12+
secrets:
13+
- MISE_GITHUB_TOKEN
1214
plugins:
1315
- *mise_plugin
1416

1517
- name: ":go: test"
1618
key: test
1719
artifact_paths:
1820
- cover-tree.svg
21+
secrets:
22+
- MISE_GITHUB_TOKEN
1923
commands:
2024
# Hosted agents inject org/token env that breaks config-precedence tests,
2125
# so clear those variables in the command shell right before go test.
@@ -38,6 +42,7 @@ steps:
3842
artifact_paths:
3943
- dist/**/*
4044
secrets:
45+
- MISE_GITHUB_TOKEN
4146
- POSTHOG_API_KEY
4247
- OAUTH_CLIENT_ID
4348
command: 'GOOS="{{matrix}}" .buildkite/release.sh release --clean --snapshot --split'

0 commit comments

Comments
 (0)