Skip to content

Commit

Permalink
♻️ Remove debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
elgohr committed Apr 9, 2022
1 parent 9628372 commit 4743367
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
6 changes: 0 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 0 additions & 11 deletions test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 4743367

Please sign in to comment.