From 979fd8981fb731e2a60c814dd41bb18f065590df Mon Sep 17 00:00:00 2001 From: JoannaaKL Date: Fri, 2 Sep 2022 12:49:58 +0000 Subject: [PATCH] Update workflow-commands-for-github-actions.md --- .../using-workflows/workflow-commands-for-github-actions.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/actions/using-workflows/workflow-commands-for-github-actions.md b/content/actions/using-workflows/workflow-commands-for-github-actions.md index c86943284f..34308f8f03 100644 --- a/content/actions/using-workflows/workflow-commands-for-github-actions.md +++ b/content/actions/using-workflows/workflow-commands-for-github-actions.md @@ -334,6 +334,12 @@ Write-Output "::add-mask::Mona The Octocat" {% endpowershell %} +{% warning %} + +**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. + +{% endwarning %} + ### Example: Masking an environment variable When you print the variable `MY_NAME` or the value `"Mona The Octocat"` in the log, you'll see `"***"` instead of `"Mona The Octocat"`.