Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Dependabot to use public Nuget registry #404

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

mijpeterson
Copy link
Contributor

@mijpeterson mijpeterson commented Aug 29, 2024

In an attempt to get continuous version and security updates from dependabot, I want to experiment with having it explicitly target the public nuget feed.

Because our nuget.config file points to a private nuget registry, dependabot is unable to successfully run against our Nuget packages. This is visible through the most recent dependabot update logs: https://github.com/AzureAD/microsoft-authentication-cli/network/updates/875662189.

You can configure dependabot.yml with credentials to access a private registry, but you need to provide it with a static token defined in the repo secrets. Since long-lived PATs are being phased out as part of SFI, we're unable to do so. Dependabot also does not have a way to programmatically retrieve a short-lived OAuth token.

My thinking is that if you can configure dependabot to point to a private registry, perhaps we can configure it to point to the public nuget registry?

I have not found a way to test dependabot against a non-default branch, so my current plan is to experiment with it in main and see if it works. If it doesn't work as expected, I'll be making subsequent PRs to either patch it some more or revert the change.

@mijpeterson mijpeterson requested a review from a team as a code owner August 29, 2024 18:16
@mijpeterson mijpeterson merged commit a119bb5 into main Aug 29, 2024
9 checks passed
@mijpeterson mijpeterson deleted the dependabot-public-nuget-feed branch August 29, 2024 18:30
mijpeterson added a commit that referenced this pull request Aug 29, 2024
mijpeterson added a commit that referenced this pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants