GitHub package registry: cannot find package version with version id, please ensure that your token has repo scopes
I've been trying to move my images project by project from my own Docker registry to the GitHub package registry. But when I started on the second project I quickly ran into the following error: name unknown: Request failed with: Cannot find package version with version id '161877', please ensure that your token has 'repo', 'read:packages' & 'write:packages' scopes ?.
Unique on user level, not repository
After digging around a bit I came to the conclusion that apparently the image name is unique on a user level, and not on repository level. Basically both docker.pkg.github.com/wouterds/repo-a/nginx and docker.pkg.github.com/wouterds/repo-b/nginx will resolve to the same image. You could think of it as if they both point to docker.pkg.github.com/wouterds/nginx.
In a brief response GitHub confirmed that this is intended behaviour. So it doesn't look like that's going to change anytime soon. Guess I'll be switching back to my own Docker registry or Docker Hub then.