Questions tagged [github-package-registry]

GitHub Packages is a software package hosting service that allows you to host your software packages privately or publicly and use packages as dependencies in your projects. Questions regarding help on the GitHub Package Registry should use this tag.

About GitHub Packages

From the documentation about GitHub Packages:

GitHub Packages is a package hosting service, fully integrated with GitHub. GitHub Packages combines your source code and packages in one place to provide integrated permissions management and billing, so you can centralize your software development on GitHub.

You can publish packages in a public repository (public packages) to share with all of GitHub, or in a private repository (private packages) to share with collaborators or an organization. You can use GitHub roles and teams to limit who can install or publish each package, as packages inherit the permissions of the repository. Anyone with read permissions for a repository can install a package as a dependency in a project, and anyone with write permissions can publish a new package version.

You can host multiple packages in one repository and see more information about each package by viewing the package's README, download statistics, version history, and more.

You can integrate GitHub Packages with GitHub APIs, GitHub Actions, and webhooks to create an end-to-end DevOps workflow that includes your code, CI, and deployment solutions.

Resources

229 questions
12
votes
3 answers

GitHub packages: Single Maven repository for GitHub organization

I would like to use GitHub packages to store Maven artifacts for several repositories in a GitHub organization. Currently, it appears that for each project, a separate (Maven) repository configuration entry is required to point to that (GitHub)…
12
votes
3 answers

Cannot install npm package in Github registry

I have published a package to the GitHub npm registry. I can see the package when I login onto GitHub, as per the screenshots below. ScreenShot 1 ScreenShot 2 Locally, a different package has the former as a dependency. Therefore I have on my…
cmhteixeira
  • 877
  • 11
  • 22
10
votes
2 answers

How to access Maven dependency from Github Packages on a Github Actions workflow?

My build is working locally by using a User + PAT (personal access token) directly on the pom.xml element: github GitHub Packages
ftkg
  • 1,652
  • 4
  • 21
  • 33
10
votes
1 answer

Accessing Private Maven Github Package Registry with Gradle

I have a private repository under user X and repository name Y: https://github.com/X/Y This a Java project built with Gradle. The Gradle configuration file has been configured as explained in the official Github Package Registry documentation and I…
Laurent
  • 14,122
  • 13
  • 57
  • 89
9
votes
3 answers

Error response from daemon: Get "https://ghcr.io/v2/": denied: denied

While using with the GitHub action I am getting Error response from daemon: Get "https://ghcr.io/v2/": denied: denied I used the login command echo $CR_PAT | docker login ghcr.io -u $ghcr_user -password-stdin
Neeraj Singh Negi
  • 213
  • 1
  • 2
  • 7
9
votes
3 answers

Use GitHub package registry as a PowerShell package repository

As far as I know a PowerShell repository is a NuGet repository... GitHub just released their package registry, which my company currently uses for npm, but also has an endpoint for NuGet. I can access the NuGet endpoint…
9
votes
2 answers

GitHub Packages Docker - Error pulling image configuration: unknown blob

GitHub packages started returning error pulling image configuration: unknown blob this weekend when trying to pull docker images. It still works to push images to the registry. I haven't found any infromation pointing to problems at…
adamfinstorp
  • 1,627
  • 3
  • 17
  • 26
8
votes
0 answers

Maven deploy error 'Could not find artifact'

I was trying to use the github packages, I followed all the steps in their basic tutorial, but I can't deploy, I already looked on several sites to fix this, but none worked. Error on deploy: Failed to deploy artifacts: Could not find artifact My…
8
votes
4 answers

How to upload maven plugin to Github packages?

Consider I have a maven plugin project and I want to publish it to Github's public maven repository called "Github Packages". I've done everything by instruction and for normal projects everything works fine out of the box. But for maven plugin…
Kivan
  • 1,712
  • 1
  • 14
  • 30
8
votes
2 answers

Gradle fails to download package from Github Package Registry

Uploading the public package with gradle works: https://github.com/ttiganik/hrd-java-test-registry/packages/61312 But I am unable to download it. I tried different URL-s and package names, but none of them work. According to documentation the…
tonisives
  • 1,962
  • 1
  • 18
  • 17
8
votes
3 answers

Public and private packages in GitHub Package Registry

Is it possible to change package visibility from private to public and vice versa? In documentation there is a statement: Private and public software packages: You can host packages privately or make them public. You can host packages privately…
7
votes
2 answers

List nuget packages on GitHub Packages

I have nuget packages hosted on GitHub Packages. Then, when I try to list the packages in the github nuget feed using nuget.exe, it tells me that it can't list the packages in the feed: > nuget list -Source…
mabead
  • 2,171
  • 2
  • 27
  • 42
7
votes
0 answers

GitHub Packages 404 for maven-metadata.xml / does it support dynamic version resolution?

Has anyone managed to get Maven dynamic version resolution working with GitHub packages? I want to be able to declare a dependency with a dynamic version and have it resolved, like this: dependencies { compile…
John
  • 10,837
  • 17
  • 78
  • 141
7
votes
3 answers

Download private module from Github Package Registry via Yarn within a Github Action? Publishing works, but installing is met with '401 Unauthorized'

For various reasons we are stuck using yarn managing our packages so we can't rely on a package-lock.json to use npm with github actions. We cannot get Yarn to authenticate as part of a github action. We've got our repo npmrc configured as:…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
7
votes
3 answers

Getting 422:Unprocessable Entity when trying to add maven package form github registry to a gradle file

I have a jar out in gitHub package registry called test.jar (version: 1.0.5), the repository name is testRepo, owner name: tejas3108. I am trying to add this jar as a dependency in my other gradle project, but with correct credentials, I still get…
Tejas
  • 157
  • 2
  • 10
1
2
3
15 16