mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
Make sure that username and password are masked, before turning on verbose
This commit is contained in:
@@ -5,6 +5,8 @@ main() {
|
|||||||
echo "" # see https://github.com/actions/toolkit/issues/168
|
echo "" # see https://github.com/actions/toolkit/issues/168
|
||||||
|
|
||||||
if usesBoolean "${ACTIONS_STEP_DEBUG}"; then
|
if usesBoolean "${ACTIONS_STEP_DEBUG}"; then
|
||||||
|
echo "::add-mask::${INPUT_USERNAME}"
|
||||||
|
echo "::add-mask::${INPUT_PASSWORD}"
|
||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -569,7 +569,9 @@ teardown() {
|
|||||||
|
|
||||||
run /entrypoint.sh
|
run /entrypoint.sh
|
||||||
|
|
||||||
expectStdOutContains "sanitize my/repository name" # prints the commands
|
expectStdOutContains "::add-mask::USERNAME
|
||||||
|
::add-mask::PASSWORD
|
||||||
|
+ sanitize my/repository name"
|
||||||
}
|
}
|
||||||
|
|
||||||
function expectStdOutContains() {
|
function expectStdOutContains() {
|
||||||
|
|||||||
Reference in New Issue
Block a user