Private registry access for Automatic Dependency Submission #174868
Replies: 7 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
So after 2 months, there is no plan to fix this, effectively making automatic dependency submissions useless for all organizations that utilize private package repositories like f.ex. Github Packages? It would be nice with an acknowledgement that you are not going to fix this any time soon, so that organizations can assess wether it will be worth the effort to maintain individual component scanning workflows for each of their repositories. |
|
Following this in the hopes we can get some answers. |
|
Also following this. Also, Private Registries need to be updated to support OIDC like the repo level yml can |
|
I'm encountering the same issue. |
|
Also encountering the same issue with Telerik's licensed nuget feed. Seems odd I have to create a manual workflow to get a builtin feature like this to work. |
|
The workaround the NuGet docs appear to offer does not work, and this thread records no one having tested it. Measurements below. Setup.NET repository on GitHub Enterprise Cloud with data residency. Central Package Management, so A handful of first-party packages resolve from a private GitHub Packages feed, mapped by <packageSourceMapping>
<packageSource key="nuget.org"><package pattern="*" /></packageSource>
<packageSource key="internal-feed"><package pattern="Acme.*" /></packageSource>
</packageSourceMapping>Submission fails on every run: The failure is all-or-nothing. The workaround that does not workThe NuGet registry docs say Tested it: granted the consuming repository read access on every private package it restores, re-enabled Automatic Dependency Submission, ran it against the default branch. Identical The grant governs permission. The failure is credential presentation. A request that carries no authentication header gets 401 regardless of who is permitted, and a GitHub-managed workflow has no step in which to present one. Permission was never the constraint here, and our own SBOM workflow is the evidence: it restores the same packages successfully on every run, because it does this first. - run: dotnet nuget update source "internal-feed" --username ${{ github.actor }} --password "${{ github.token }}" --store-password-in-clear-textThat step is precisely what cannot be added to the managed workflow. What does workSelf-submitting the snapshot from a workflow you control. We run Two things worth knowing if you go this way: Build the snapshot from the restore graph, not from a CycloneDX BOM. Implicit .NET runtime packs ( A called workflow cannot hold more token permission than its caller grants. If your SBOM workflow is reusable, the calling job needs It also turns out to be the more deterministic option, which cuts against the usual framing of self-submission as a workaround. It restores against the SDK pinned in Restating the askReading the The quieter case is a repository that adds its first private dependency. Its dependency graph was working, and now it is not. The symptom is a red check beside a graph that silently freezes on its last good snapshot, still serving yesterday's resolved versions. 🤖 Generated with Claude Code |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Product Feedback
Body
Allow the Automatic Dependency Submission feature to access to the org-level Private Registry feature.
We tried turning on Automatic Dependency Submission for all our repos. But the NuGet action fails, because we use private registries (in this case GitHub Packages). The job fails, and subsequently marks all pull request and pipeline runs as failing.
It would be great if the feature had access to the same configuration as Dependabot and the default CodeQL setup.
All reactions