The first answer by m.ghoreshi is correct but I want to elaborate on the answer. When creating the USER_NAME and ACCESS_TOKEN to be used by the workflow, make sure to create it under Secrets and Variables / Actions, not Secrets and Variables / Codespaces.