Replies: 4 comments 5 replies
-
|
Yes, it’s possible — but it depends on whether your GitHub Packages repository is public or private: Public repo + public package → You don’t need a Personal Access Token (PAT). Anyone can pull your Maven package without authentication. Private repo or private package → You must use a PAT (or GitHub Actions/GitHub App tokens) to authenticate. 📌 So if you want to make your Maven package available to everyone without PAT, you need to publish it as a public package in a public repository. |
Beta Was this translation helpful? Give feedback.
-
|
GitHub Packages for private registries always requires authentication, so users need a PAT or other token to pull packages. For public access without a PAT, the only option is to make the package public and host it in a repository that supports anonymous downloads, like npm registry for npm packages or GitHub Releases for binaries. Essentially, GitHub Packages doesn’t allow completely unauthenticated access for packages, so if you want anyone to download it without a token, you’ll need to either make the package public or distribute it through a different channel like GitHub Releases. |
Beta Was this translation helpful? Give feedback.
-
|
Currently, it's not possible to access public Maven packages from GitHub Packages without authentication. This is a common point of friction for open-source projects using GitHub's package registry. Most GitHub Packages registries, including the one for Maven, require a Personal Access Token (PAT) for both publishing and installing packages, regardless of their public or private status. Why Authentication is Required Your Options JitPack.io: This is a popular service for open-source projects that can automatically build and host Maven artifacts from your GitHub repository. Users can simply add the JitPack repository and a dependency to their pom.xml file, and JitPack handles the rest without requiring any authentication. Maven Central Repository: The gold standard for open-source Java projects is to publish to the central Maven repository. This requires a one-time setup and a more formal release process, but it's the most common and trusted way for users to consume your artifacts. It ensures your packages are widely accessible and easily integrated into any Maven project. While GitHub Packages is a convenient solution, for open-source projects that need to be easily consumable by a broad audience, these alternatives are better suited to meet your goal of providing a PAT-free experience. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have an open-source project and we would like to build a snapshot and provide it via GitHub Packages. We managed to deploy our package, but it seems that anyone who wants to use it must provide a PAT. It is clear that this is not what we want. Could anyone tell us if it is possible to let users access our GitHub Packages repository without a PAT?
Beta Was this translation helpful? Give feedback.
All reactions