Github Registry Docker Push - Cannot find package version

This YAML was working until yesterday. Today, I am getting this error: name unknown: Request failed with : Cannot find package version with version id 91122, please ensure that your token has repo, read:packages & write:packages scopes.

I created new tokens with read and write permissions but couldn’t solve the problem.

    - name: Login to GitHub Registry
      run: echo ${{ secrets.GITHUB_REGISTRY_TOKEN }} | docker login --username "fatihyildizhan" --password-stdin

    - uses: actions/checkout@master

    - name: Build the Docker Image
      run: docker build . --file Dockerfile --tag

    - name: Push to GitHub Registry
      run: docker push

    - name: Logout
      run: docker logout

same here. 

My assume is image name is unique on user not repository.


It seems like you’re correct. If you go to your profile and click on packages you will see that even if they’re in a different repository they are shared between your entire profile. Kind of annoying, but glad there’s a workaround

Seems to be right, images names are unique on user level and not repository level. A bit odd considering the repository is part of the tag name though. A workaround could be adding a prefix/suffix to the image name.