Given a repository, scan all files for packages and generate the Dependabot configuration file
Currently scans for
File | System | Package |
---|---|---|
nuget.config, *.csproj, *.vbproj | .NET | NuGet |
pom.xml | Java | Maven |
package.json | JavaScript | NPM |
Gemfile, Gemfile.lock | Ruby | bundler |
requirements.txt | Python | pip |
*.yml | GitHub Actions | GitHub Actions |
See issues for details.
See the official Dependabot docs for more options
DCB [-d|--directory <directory to scan>] [-a|--assignees <comma delimited list of assignees>]
Given this projects root directory + samples, produces the output:
version: 2
updates:
- package-ecosystem: nuget
directory: /samples/dotnet/
schedule:
interval: daily
- package-ecosystem: maven
directory: /samples/java/
schedule:
interval: daily
- package-ecosystem: npm
directory: /samples/javascript/
schedule:
interval: daily
- package-ecosystem: pip
directory: /samples/python/
schedule:
interval: daily
- package-ecosystem: bundler
directory: /samples/ruby/
schedule:
interval: daily
- package-ecosystem: nuget
directory: /src/DCB.Tests/
schedule:
interval: daily
- package-ecosystem: nuget
directory: /src/DCB/
schedule:
interval: daily
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily