-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Seeking Alternative for Deprecated DEPENDABOT_EXTRA_CREDENTIALS in Dependabot V2 #1383
Comments
@vishnuprakash9845 thanks for the report. Based on the info provided, you'll need to add this to your config: version: 2
registries:
my-org-feed:
type: nuget-feed
url: https://pkgs.dev.azure.com/Org/Project/_packaging/Configurations/nuget/v3/index.json
token: PAT:${{ DEPLOY_PAT }}
updates:
- package-ecosystem: 'nuget'
registries:
- 'my-org-feed' |
Thank you, @rhyskoedijk , for the suggestion! It worked perfectly! 😊 Now, I’m facing an issue with attaching reviewers to the pull requests. I referred to the documentation on reviewers but still couldn't get it to work. I've tried various formats including my org+fullname, full team name, display name (used when someone tags me as @vishnu), and even my email, but none of them seem to work. Any suggestions on how to fix this? Here’s the link to the doc I followed: Your help would be greatly appreciated! |
Thank you @vishnuprakash9845 for bringing up this point! I was about to ask the same thing in my issue #1384 . I'm experiencing the exact same problem when trying to attach a group as reviewers. dependabot.yml
I attempted to add the group "xxxx-TestGuards," but encountered the following error:
I tried several options, but none seemed to work. @rhyskoedijk or @berendhaan I'd appreciate any guidance or help with resolving this issue as well! |
@vishnuprakash9845 The reviewers must be a user id (GUID) or email address (string); If it is not working then I'd recommend disabling your reviewers config until it is fixed. As part of #1385, I am reworking the identity lookup code so that it will work with more input types (i.e. user id, email, full name, group name).
@Ammanyi groups are not currently supported, only individual users. As mentioned above, I will attempt to include group support as part of #1385. |
Describe the bug
I have NuGet package configurations in Azure Artifacts and created the following dependabot.yml file. In the Azure pipeline, I was triggering Dependabot using this configuration:
Categorization
Expected behavior
However, with Dependabot V2, it appears that extraEnvironmentVariables has been deprecated. Could someone from the community guide me on the alternative approach for setting credentials in the new version of Dependabot? Any help would be appreciated.
https://github.com/tinglesoftware/dependabot-azure-devops/blob/main/docs/migrations/v1-to-v2.md
Extension (please complete the following information):
Additional context
I have successfully used DEPENDABOT_EXTRA_CREDENTIALS in Dependabot V1 to authenticate my NuGet feed hosted on Azure Artifacts. However, after upgrading to Dependabot V2, I found that DEPENDABOT_EXTRA_CREDENTIALS is now deprecated. My pipeline configuration for triggering Dependabot is part of an Azure DevOps pipeline where I rely on this for package updates. I need guidance on how to pass authentication credentials for private NuGet feeds using Dependabot V2, as my current approach doesn't seem to work, and I haven't found a clear alternative in the documentation.
The text was updated successfully, but these errors were encountered: