Getting Started
Configure Dependabot in an Azure Pipelines YAML pipeline.
Dependabot runs as a task inside your pipeline. Follow these steps to enable it:
- Install the Dependabot extension from the Azure DevOps Marketplace.
- Add a
.azuredevops/dependabot.ymlor.github/dependabot.ymlfile to your repository following the official configuration. - Create a pipeline that includes the
dependabot@2task. The agent must have Docker installed; the Microsoft-hostedubuntu-latestimage already includes it.
trigger: none # Disable CI trigger
schedules:
- cron: '0 0 * * 0' # weekly on sunday at midnight UTC
always: true
branches:
include:
- master
batch: true
displayName: Weekly
pool:
vmImage: 'ubuntu-latest' # requires macOS or Ubuntu (Windows is not supported)
steps:
- task: dependabot@2
inputs:
mergeStrategy: 'squash'The task accepts many inputs such as dryRun, setAutoComplete, and mergeStrategy. See the task parameters for the full list.