Giter VIP home page Giter VIP logo

Comments (6)

vsoch avatar vsoch commented on September 25, 2024 1

Ah gotcha! Do you want to PR to update the docs here and clarify what you did so the next person doesnโ€™t run into the same issue? It would be greatly appreciated.

from github-ci.

adelavega avatar adelavega commented on September 25, 2024

Actually looks like the docs were say:

To authenticate to the Container registry within a GitHub Actions workflow, use the GITHUB_TOKEN for the best security and experience. If your workflow is using a personal access token (PAT) to authenticate to ghcr.io, then we highly recommend you update your workflow to use the GITHUB_TOKEN.

https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

And this guide says you must give permission to a specific repo's actions for a given package: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio

from github-ci.

vsoch avatar vsoch commented on September 25, 2024

It should indeed work - I think there could be a few reasons it wouldn't:

  1. you didn't enable users to have public/private access to packages in the org settings
  2. your user doesn't have the correct permissions (everywhere I've used this successfully I have admin/owner)

If you can give me a more specific error message I could perhaps help - I'm going for my run now but will be back in about an hour!

from github-ci.

adelavega avatar adelavega commented on September 25, 2024

Sorry I updated my comments from under your feet but I think I found the problem.

It's very unintuitive but even though a package is linked with a repo, that doesn't mean the repo's actions are automatically authorized to push to that package.

from github-ci.

adelavega avatar adelavega commented on September 25, 2024

image

I had to manually add the repo there.

from github-ci.

adelavega avatar adelavega commented on September 25, 2024

Sure! I'll know shortly that this fixes my issue. I can also confirm I did the two things you mentioned above and that wasn't enough.

from github-ci.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.