Skip to content

Commit 1f68823

Browse files
authored
RUST-1837 Avoid logging secrets when publishing (#458)
1 parent 72035bc commit 1f68823

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.evergreen/release-danger-do-not-run-manually.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ if [[ -z "$TAG" ]]; then
1616
exit 1
1717
fi
1818

19-
if [[ -z "$TOKEN" ]]; then
20-
>&2 echo "\$TOKEN must be set to the crates.io authentication token"
19+
if [[ -z "$CRATES_IO_TOKEN" ]]; then
20+
>&2 echo "\$CRATES_IO_TOKEN must be set to the crates.io authentication token"
2121
exit 1
2222
fi
2323

@@ -26,4 +26,4 @@ git checkout $TAG
2626

2727
. ~/.cargo/env
2828

29-
cargo publish --token $TOKEN
29+
cargo publish --token $CRATES_IO_TOKEN

.evergreen/releases.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ functions:
2020
type: test
2121
params:
2222
working_dir: "src"
23+
include_expansions_in_env:
24+
- CRATES_IO_TOKEN
2325
script: |
2426
set +x
2527
2628
TAG=${GIT_TAG} \
27-
TOKEN=${CRATES_IO_TOKEN} \
2829
bash .evergreen/release-danger-do-not-run-manually.sh
2930
3031
tasks:

0 commit comments

Comments
 (0)