1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Update content/actions/using-workflows/workflow-commands-for-github-actions.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
This commit is contained in:
Nikola Jokic
2022-03-28 09:19:54 +02:00
committed by GitHub
parent 9063d21e56
commit 39d746c27d

View File

@@ -309,7 +309,7 @@ jobs:
::add-mask::{value}
```
Masking a value prevents a string or variable from being printed in the log. Each masked word separated by whitespace is replaced with the `*` character. You can use an environment variable or string for the mask's `value`. Masked outputs are considered as secrets, and will be redacted on the runner. See [Workflow commands for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions).
Masking a value prevents a string or variable from being printed in the log. Each masked word separated by whitespace is replaced with the `*` character. You can use an environment variable or string for the mask's `value`. When you mask a value, it is treated as a secret and will be redacted on the runner. For example, after you mask a value, you won't be able to set that value as an output.
### Example: Masking a string