Skip to content

Commit 690bd07

Browse files
authored
add auto-created azure credentials to job.credentials-metadata (#631)
1 parent 1d92ef7 commit 690bd07

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/dependabot/internal/cmd/update.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ func processInput(input *model.Input, flags *UpdateFlags) {
416416
"username": "x-access-token",
417417
"password": "$LOCAL_AZURE_ACCESS_TOKEN",
418418
})
419+
input.Job.CredentialsMetadata = append(input.Job.CredentialsMetadata, model.Credential{
420+
"type": azureArtifactsPackageManagerCredentialType[input.Job.PackageManager],
421+
"host": host,
422+
})
419423
}
420424
} else {
421425
log.Printf("Skipping Azure Artifacts credentials for %s package manager.", input.Job.PackageManager)

0 commit comments

Comments
 (0)