Migration from explicit inputs to configuration file for multiple repositories in single pipeline
See original GitHub issueTo resolve the warnings regarding migration of the inputs we ran into a couple of issues.
The first is already covered in #327
The other problem that we have is that we use a single Azure DevOps pipeline to run the DependaBot task for multiple repositories in our project, for example:
steps:
- task: dependabot@1
displayName: Dependabot | API
inputs:
packageManager: 'nuget'
azureDevOpsAccessToken: $(pat)
directory: api/
targetRepositoryName: 'ado-project/api/'
setAutoComplete: true
extraEnvironmentVariables: AZURE_PROJECT=ado-project
- task: dependabot@1
displayName: Dependabot | Webapps
inputs:
packageManager: 'npm'
azureDevOpsAccessToken: $(pat)
directory: 'webapps/'
targetRepositoryName: 'ado-project/webapps'
setAutoComplete: true
extraEnvironmentVariables: AZURE_PROJECT=ado-project
How would we differentiate between the multiple repositories that we are targeting on our pipeline?
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Check out multiple repositories in your pipeline - Azure ...
To do this, declare the repository resources in the YAML files as in the examples above, and configure a branch policy in the...
Read more >Migrating from Azure Pipelines to GitHub Actions
GitHub Actions and Azure Pipelines share several configuration similarities, which makes migrating to GitHub Actions relatively straightforward.
Read more >Publish and download pipeline Artifacts - Azure
A single download step can download one or more artifacts. To download multiple artifacts, leave the artifact name field empty and use file...
Read more >Use CI/CD configuration from other files
Use CI/CD configuration from other files. You can use include to include external YAML files in your CI/CD jobs. Include a single configuration...
Read more >Migrating from Jenkins with GitHub Actions Importer
The instructions below will guide you through configuring your environment to use GitHub Actions Importer to migrate Jenkins pipelines to GitHub Actions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Correct
Removal of explicit inputs in favour of the configuration file is still planned though having been pushed ahead since July/August.
In #444, support for multiple repositories (via
targetRepositoryName
) when usingdependabot.yml
was added which works by making a HTTP request to Azure DevOps API.You will still need to add
dependabot.yml
file to each repository that needs to be updated even though the pipeline is shared.