Make sure that username and password are masked, before turning on verbose

This commit is contained in:
Lars Gohr
2020-05-19 21:28:45 +02:00
parent 2d6b8f33b6
commit b96d0ec55c
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ main() {
echo "" # see https://github.com/actions/toolkit/issues/168
if usesBoolean "${ACTIONS_STEP_DEBUG}"; then
echo "::add-mask::${INPUT_USERNAME}"
echo "::add-mask::${INPUT_PASSWORD}"
set -x
fi

View File

@@ -569,7 +569,9 @@ teardown() {
run /entrypoint.sh
expectStdOutContains "sanitize my/repository name" # prints the commands
expectStdOutContains "::add-mask::USERNAME
::add-mask::PASSWORD
+ sanitize my/repository name"
}
function expectStdOutContains() {