Skip to content

Commit 4c709e6

Browse files
authored
Use dynamically generated github tokens (#303)
1 parent 80d6da0 commit 4c709e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.evergreen.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ functions:
3939
unzip -u macos-notary.zip
4040
chmod 755 ./linux_amd64/macnotary
4141
"release":
42+
- command: github.generate_token
43+
params:
44+
expansion_name: generated_token
4245
- command: shell.exec
4346
type: setup
4447
params:
4548
working_dir: src/github.com/mongodb/mongodb-enterprise-kubernetes/tools/multicluster
4649
include_expansions_in_env:
47-
- GITHUB_TOKEN
4850
- GRS_USERNAME
4951
- GRS_PASSWORD
5052
- PKCS11_URI
@@ -65,11 +67,12 @@ functions:
6567
set -Eeu pipefail
6668
6769
export PATH=$GOROOT/bin:$PATH
70+
export GITHUB_TOKEN=${generated_token}
6871
${workdir}/goreleaser release --rm-dist
6972
7073
tasks:
7174
- name: package_goreleaser
72-
git_tag_only: true
75+
allowed_requesters: [ "patch", "github_tag" ]
7376
tags: ["packaging"]
7477
commands:
7578
- func: "clone"

0 commit comments

Comments
 (0)