Skip to content

Workflow GITHUB_TOKEN not authorised to download packages from GitHub registry #46641

Discussion options

You must be logged in to vote

I found one way, at least it works for me:
I have 2 private repos.
repo A publishes a docker image into ghcr.io, repo B uses the docker image for ci.
Billing plan is free.

repo A uses secrets.GITHUB_TOKEN to publish image, repo B uses secrets.GITHUB_TOKEN to pull docker image from repo A.

What I did:

  1. in repo A, publish image with action by following:
    ref: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#publishing-a-package-using-an-action

  2. in Manage Actions access setting page of the package of repo A, pick repo B to have read access
    The url has the format:
    (for org user) https://github.…

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@benjamin-guibert
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@muttli
Comment options

Answer selected by benjamin-guibert
Comment options

You must be logged in to vote
4 replies
@maluramichael
Comment options

@maluramichael
Comment options

@merzavko
Comment options

@leavesster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
8 participants