Skip to content
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

Add --sensitive info #211

Merged
merged 2 commits into from
Mar 30, 2023
Merged
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ Echo it:
envman run bash -c 'echo "Environment test: $MY_TEST_ENV_KEY"'
```

## Mark an Env Var as sensitive and redact it from the build logs

Add/store an environment variable:

```
envman add --key MY_SECERT_ENV_KEY --value 'this is a secret value' --sensitive
```

*Why `bash -c` is required? Because `echo` in itself
does not do any environment expansion, it simply prints
its input. So if you want to see the value of an environment
Expand Down