diff --git a/entrypoint.sh b/entrypoint.sh index 8b8aa9c4..955f0dde 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,12 +4,6 @@ set -e 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 - sanitize "${INPUT_NAME}" "name" if ! usesBoolean "${INPUT_NO_PUSH}"; then sanitize "${INPUT_USERNAME}" "username" diff --git a/test.bats b/test.bats index 34fb5880..5e3749dc 100755 --- a/test.bats +++ b/test.bats @@ -598,17 +598,6 @@ teardown() { /usr/local/mock/docker push my/repository:B" } -@test "it is verbose on ACTIONS_STEP_DEBUG" { - export GITHUB_REF='refs/heads/master' - export ACTIONS_STEP_DEBUG=true - - run /entrypoint.sh - - expectStdOutContains "::add-mask::USERNAME -::add-mask::PASSWORD -+ sanitize my/repository name" -} - @test "it is ok with complexer passwords" { export GITHUB_REF='refs/heads/master' export INPUT_PASSWORD='9eL89n92G@!#o^$!&3Nz89F@%9'