mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
♻️ Remove debug option
This commit is contained in:
@@ -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"
|
||||
|
||||
11
test.bats
11
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'
|
||||
|
||||
Reference in New Issue
Block a user