-
Notifications
You must be signed in to change notification settings - Fork 61.5k
Added warning to documentation. #37411
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -289,6 +289,7 @@ Write-Output "::add-mask::Mona The Octocat" | |
|
||
> [!WARNING] | ||
> Make sure you register the secret with 'add-mask' before outputting it in the build logs or using it in any other workflow commands. | ||
> This will still leak the string initialy as part of the echo statment. | ||
|
||
### Example: Masking an environment variable | ||
|
||
|
@@ -324,6 +325,9 @@ jobs: | |
|
||
{% endpowershell %} | ||
|
||
> [!WARNING] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the gist is correct that you can't actually use an Important Values set via an |
||
> This will still leak the string as part of the env. | ||
|
||
### Example: Masking a generated output within a single job | ||
|
||
If you do not need to pass your secret from one job to another job, you can: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the very least: