https://github.com/samsmithnz/dependabot-configuration-builder
Given a repository, scan all files for packages and generate the Dependabot configuration file
https://github.com/samsmithnz/dependabot-configuration-builder
dependabot poc
Last synced: about 1 month ago
JSON representation
Given a repository, scan all files for packages and generate the Dependabot configuration file
- Host: GitHub
- URL: https://github.com/samsmithnz/dependabot-configuration-builder
- Owner: samsmithnz
- License: mit
- Created: 2021-12-12T01:03:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T19:24:11.000Z (7 months ago)
- Last Synced: 2025-03-07T20:25:55.688Z (7 months ago)
- Topics: dependabot, poc
- Language: C#
- Homepage:
- Size: 1.4 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dependabot-Configuration-Builder
Given a repository, scan all files for packages and generate the Dependabot configuration file[](https://github.com/samsmithnz/Dependabot-Configuration-Builder/actions/workflows/dotnet.yml)
[](https://coveralls.io/github/samsmithnz/Dependabot-Configuration-Builder?branch=main)
[](https://sonarcloud.io/summary/new_code?id=samsmithnz_Dependabot-Configuration-Builder)
[](https://github.com/samsmithnz/Dependabot-Configuration-Builder/releases)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](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates) for more options
## Usage
```C#
DCB [-d|--directory ] [-a|--assignees ]
```## Example
Given this projects root directory + samples, produces the output:
```YAML
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
```