-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Task reports 'Endpoint auth data not present' when using parameter 'azureDevOpsServiceConnection' #783
Comments
@madmuffin1 since you contributed #683, can you help here? |
First, the Second, does this work without using |
For confidential reasons, I replaces some identifiers in the logs. Current (working) setup #.github/dependabot.yml
version: 2
registries:
npm-a_name:
type: npm-registry
url: https://somewhere
token: ${{NPM_TOKEN}}
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: daily
commit-message:
prefix: fix
prefix-development: chore
include: scope #dependabot.yml / pipeline definition
trigger: none
schedules:
- cron: '0 0,4,8,12,16,20 * * *'
always: true
branches:
include:
- main
steps:
- task: dependabot@1
inputs:
autoApprove: true
mergeStrategy: rebase
setAutoComplete: true Without NPM_TOKEN
Trying azureDevOpsServiceConnection When adding [1]
![]() |
Using/referencing a service connection in the |
I am setting azureDevOpsServiceConnection in dependabot.yml (this pipeline definition) like this: - task: dependabot@1
inputs:
[...]
azureDevOpsServiceConnection: NameOfANpmServiceConnection |
What's the value for |
It's just a placeholder here, as I don't want to paste the actual value for security reasons. |
What type of service connection did you create? |
The value for I also see that @madmuffin1 contribution in #683 did not restrict the type of connection that can be used for |
Ah ok, I see. |
This behaviour has been fixed in #809 and e48d1fb If the intention is to hide authentication values from the logs then using
|
tl;dr
Please fix: When adding a working DevOps service connection to
dependabot@1
usingazureDevOpsServiceConnection
, the task fails with the message:Steps to reproduce
In our setup, we are using
dependabot@1
in an existing project, which already uses a DevOps service connection for accessing our private NPM registry.This works as intended.
Now I wanted to adapt #567 (comment) and added the task parameter
azureDevOpsServiceConnection
as described on https://marketplace.visualstudio.com/items?itemName=tingle-software.dependabotDoing so, the tasks fails with
##[error]Endpoint auth data not present: NameOfANpmServiceConnection
I tried adding
npmAuthenticate@0
before thedependabot@1
task , but this did not change the behavior.The text was updated successfully, but these errors were encountered: