Adding Project as a variable to dependabot@2 #1530
Replies: 2 comments
-
@kzhuklinets are you able to share a bit more about how you configured - task: dependabot@2
inputs:
targetProjectName: ...
targetRepositoryName: ... |
Beta Was this translation helpful? Give feedback.
-
@rhyskoedijk, yes, sure. This is a part of the template we are using. AZURE_ORGANIZATION, AZURE_PROJECT, AZURE_REPOSITORY - the values I reference to. We are bypassing the part with the task by using the container directly.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
With the dependabot@1 we managed to configure one pipeline that was running checks for all our projects and repos by working directly with the updater component and passing the needed variables there.
In the second version, probably, the same can be done if a project name and id variables from there
dependabot-azure-devops/extension/tasks/dependabotV2/utils/getSharedVariables.ts
Line 98 in a13533f
And then, using
in pipelines, we can have different folders that we can reference in the existing calling pipeline /.azuredevops/dependabot.yml file.
This will simplify and unify the pipelines when a team isn't aware of the "back office" and just receives PRs with bumps.
Does this make sense, or does it cause overcomplication, and can it be done differently?
Beta Was this translation helpful? Give feedback.
All reactions