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
0
votes
1 answer

Github Packages not proxying requests

I'm using Github Packages as my npm registry and have some private packages hosted there. I want all npm install requests to proxy through Github Packages. According to this blog post and these docs this should happen by default. However, when I run…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
0
votes
1 answer

SpringBoot Application fails startup when adding dependency

I have an existing SpringBoot Application that was running with no issue. I then created a Java library—a standalone repository with only static Java code, no main class. My library is deployed as a GitHub Maven package. I then proceeded with…
hopscotch
  • 178
  • 5
  • 16
0
votes
1 answer

Can command line args with npm eliminate the need for a `.npmrc` file?

My JavaScript project is successfully harnessing a multi stage build process within a Dockerfile. During the "build" stage a .npmrc file is being built on the fly using a secret supplied as a Docker build arg, as illustrated below: FROM…
Mark
  • 1,884
  • 2
  • 25
  • 36
0
votes
1 answer

Push nuget package to Github Package Registry: The response ended prematurely. An error occurred while sending the request

I've succeeded in setting up a GitHub action that builds and packs my multi-target NuGet package. name: .NET Core on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: windows-latest …
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
0
votes
1 answer

Azure Pipelines GitHub Packages Don't Work

Following the instructions here: https://learn.microsoft.com/en-us/azure/devops/release-notes/2020/pipelines/sprint-170-update Have the following: packages: - package: MyPkg type: NuGet connection: github name: TheOrg/TheRepo/ThePkg …
Jeff
  • 35,755
  • 15
  • 108
  • 220
0
votes
1 answer

Pulling docker image from private repository

Is it possible to pull image from a private repository without adding someone to that repository? I am trying to see if I can enable someone just to pull packages/images in a repo without having read access to the code in github repo.
vpram86
  • 5,860
  • 4
  • 28
  • 40
0
votes
1 answer

Publish npm secret key in public repository

i have question about github. I published npm secret key in public repository and github deleted this key. But i don't understand, someone could see this key and have time to download my packages?
Pegos
  • 163
  • 1
  • 2
  • 12
0
votes
1 answer

How do I Import a user created package in Java?

I recently hosted a Maven package on Github's package registry and now I am trying to use it. The package is intended to provide the data models that are used by various applications, allowing my team to make changes to the data model package…
0
votes
1 answer

Deployed Maven Attached Artifacts on Github Remain Inaccessible

I have a maven module which is configured with a feature packaging (an Apache Karaf feature). This project has no primary artifact to deploy but an attached feature.xml file. When I try to deploy the project to Github package the upload seems to…
cde
  • 187
  • 1
  • 12
0
votes
1 answer

Why doesn't npm upgrade install my 0.0.1 dep with a dependency on '^0.0.0'?

So I've read the doc at npm upgrade#caret dependencies. But npm upgrade does not seem to work for me. It is possible this has something to do with github packages. The package that fails to update is a package in our internal github packages…
Marvin
  • 2,537
  • 24
  • 35
0
votes
1 answer

Why does Github Package Registry say my token is not scoped to read packages?

I'm trying to publish a Gradle project. I have followed all the documentation provided by GitHub, but when I send the command to publish I am getting a 401 error from the server. Execution failed for task…
Taylor Burke
  • 424
  • 4
  • 15
0
votes
1 answer

docker push of windows container image to GitHub package repository failed

I have a dotnet core web app built on windows using GitHub Actions workflow steps. The last step is to build and push the container to GitHub packages (using docker build and docker push commands). docker push of windows container image to GitHub…
0
votes
1 answer

How do I add my own package to a GitHub workflow?

I am trying to use the basic .NET Core Github workflow as shown here, but I am having trouble with a GitHub package I created. When the workflow gets to the Install Depedencies which performs a donet restore, it appears to not be able to find the…
0
votes
1 answer

Does GitHub Actions replace ${{ secrets.NuGetAPIKey }} in nuget.config?

Github security does not allow storing Private Access Token in ClearTextPassword property of nuget.config. Basically, they disable the PAT. My question is, will the tag replacement of ${{ secrets.NuGetAPIKey }} take care of nuget.config also? Note…
frosty
  • 2,421
  • 6
  • 26
  • 47
0
votes
1 answer

Gradle/Maven deploy to github packages - Preserving parameter/argument names

I am publishing a package to github packages . In the published package, the argument names in interfaces are getting polluted. this is how my interface class looks like- public interface detailAPI { getDetails(@ApiParam(value = "", required =…
matrixguy
  • 286
  • 1
  • 6
  • 30
1 2 3
15
16