How to provide GitHub and Azure DevOps Token? #1509
-
Hello, I'm a bit confused how to provide the tokens? I have a .NET 8 solution in a private organization and only packages from nuget.org. I started with dependabot-script and got this "partially" working. I wasn't able to limit the updates to security updates (seems to ignore my dependabot.yml and so on). But before digging deeper, I found this project here, installed the Marketplace Extension and create the mentioned pipeline: trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- task: dependabot@2 I was wondering, that no tokens seems to be required, but I run the pipeline and was happy as it says: Success ... But, after opening the result, I saw that it has two errors:
In the readme.md I found only examples with tokens for private registries. Do I have to provide a GitHub and / or an Azure DevOps Access Token? Like with the dependabot-script? How? Full log
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@mikeKuester have a look at the task parameters documentation if you haven't already, it covers the token parameters you're looking for. Example using service connections: - task: dependabot@2
inputs:
azureDevOpsServiceConnection: 'Dependabot DevOps User'
gitHubConnection: 'Dependabot GitHub User' Example using access tokens: - task: dependabot@2
inputs:
azureDevOpsAccessToken: $(MY_SECRET_DEVOPS_TOKEN)
gitHubAccessToken: $(MY_SECRET_GITHUB_TOKEN) Regarding the error in your logs, it looks like a |
Beta Was this translation helpful? Give feedback.
@mikeKuester have a look at the task parameters documentation if you haven't already, it covers the token parameters you're looking for.
Example using service connections:
Example using access tokens:
Regarding the error in your logs, it looks like a
dependabot.yml
misconfiguration to me; Dependabot could not find any .NET solution or project files in the dire…