♻️ Remove debug option

This commit is contained in:
Lars Gohr
2022-04-09 21:37:09 +02:00
parent 9628372a51
commit 47433670da
2 changed files with 0 additions and 17 deletions

View File

@@ -4,12 +4,6 @@ set -e
main() { 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
echo "::add-mask::${INPUT_USERNAME}"
echo "::add-mask::${INPUT_PASSWORD}"
set -x
fi
sanitize "${INPUT_NAME}" "name" sanitize "${INPUT_NAME}" "name"
if ! usesBoolean "${INPUT_NO_PUSH}"; then if ! usesBoolean "${INPUT_NO_PUSH}"; then
sanitize "${INPUT_USERNAME}" "username" sanitize "${INPUT_USERNAME}" "username"

View File

@@ -598,17 +598,6 @@ teardown() {
/usr/local/mock/docker push my/repository:B" /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" { @test "it is ok with complexer passwords" {
export GITHUB_REF='refs/heads/master' export GITHUB_REF='refs/heads/master'
export INPUT_PASSWORD='9eL89n92G@!#o^$!&3Nz89F@%9' export INPUT_PASSWORD='9eL89n92G@!#o^$!&3Nz89F@%9'