docker-credential-helpers icon indicating copy to clipboard operation
docker-credential-helpers copied to clipboard

'pass' based credential helper returns success when cred doesn't exist

Open nicks opened this issue 3 years ago • 0 comments

Repro steps:

echo "garbage" | go run ./pass/cmd/main.go get

Expected: Exit code 1

Actual: Exit code 0 {"ServerURL":"garbage","Username":"","Secret":""}

This is the root of cryptic errors like:

WARNING: could not erase credentials: error erasing credentials - err: exit status 1, out: `exit status 1: Error: docker-credential-helpers/[CRED_FOLDER_NAME] is not in the password store.` 

nicks avatar Jul 27 '22 13:07 nicks