Skip to content

RUST-1837 Avoid logging secrets when publishing #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .evergreen/release-danger-do-not-run-manually.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ if [[ -z "$TAG" ]]; then
exit 1
fi

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

Expand All @@ -26,4 +26,4 @@ git checkout $TAG

. ~/.cargo/env

cargo publish --token $TOKEN
cargo publish --token $CRATES_IO_TOKEN
3 changes: 2 additions & 1 deletion .evergreen/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ functions:
type: test
params:
working_dir: "src"
include_expansions_in_env:
- CRATES_IO_TOKEN
script: |
set +x

TAG=${GIT_TAG} \
TOKEN=${CRATES_IO_TOKEN} \
bash .evergreen/release-danger-do-not-run-manually.sh

tasks:
Expand Down