The docker/login-action Username and password required error is thrown before any network call, by a three branch check that has two other messages available to it. It chose this one because both values were empty, which is a different problem from one misnamed secret.
Read in order from src/docker.ts. The first branch requires both values to be falsy, so "Username and password required" is the message that means neither arrived.
What this error means
The step fails in under a second, with no registry named and no connection attempted. Steps before it are green, and the build step after it is skipped.…