LINE1 10 20 30 40 50 60 70 8012set -eu34helper=${1:-"$(dirname "$0")/../docker/git-credential-env"}5expected=$(printf 'username=test-user\npassword=test-token\n')67actual=$(printf 'protocol=https\nhost=github.com\n\n' | \8 GIT_HOST=github.com GIT_USERNAME=test-user GIT_PASSWORD=test-token "$helper" get)9[ "$actual" = "$expected" ]10printf '%s\n' 'PASS: configured HTTPS host receives credentials'1112actual=$(printf 'protocol=https\nhost=gitlab.com\n\n' | \13 GIT_HOST=github.com GIT_USERNAME=test-user GIT_PASSWORD=test-token "$helper" get)14[ -z "$actual" ]15printf '%s\n' 'PASS: other HTTPS hosts receive no credentials'1617actual=$(printf 'protocol=ssh\nhost=github.com\n\n' | \18 GIT_HOST=github.com GIT_USERNAME=test-user GIT_PASSWORD=test-token "$helper" get)19[ -z "$actual" ]20printf '%s\n' 'PASS: SSH remotes receive no HTTPS credentials'2122actual=$(printf 'protocol=https\nhost=github.com\n\n' | \23 GIT_HOST=github.com GIT_USERNAME=test-user GIT_PASSWORD=test-token "$helper" store)24[ -z "$actual" ]25printf '%s\n' 'PASS: store operation does not persist credentials'