Dependabot Collector
Parses .github/dependabot.yml to collect dependency update configuration including covered ecosystems, update schedules, and directory targets. Enables enforcement of dependency automation standards.
dependabot to your lunar-config.yml:uses: github://earthly/lunar-lib/collectors/dependabot@v1.0.5
What This Integration Collects
This integration includes 1 collector that gather metadata from your systems.
config
Scans the repository for a Dependabot configuration file at .github/dependabot.yml (or .yaml variant). Parses the YAML to extract the schema version, update entries (ecosystem, directory, schedule), and a normalized list of covered ecosystems. Writes structured data to .dep_automation.dependabot.
How Collectors Fit into Lunar
Lunar watches your code and CI/CD systems to collect SDLC data from config files, test results, IaC, deployment configurations, security scans, and more.
Collectors are the automatic data-gathering layer. They extract structured metadata from your repositories and pipelines, feeding it into Lunar's centralized database where guardrails evaluate it to enforce your engineering standards.
Learn How Lunar Works →Example Collected Data
This collector writes structured metadata to the Component JSON. Here's an example of the data it produces:
{
"dep_automation": {
"dependabot": {
"valid": true,
"path": ".github/dependabot.yml",
"version": 2,
"updates": [
{
"package_ecosystem": "npm",
"directory": "/",
"schedule": "weekly",
"open_pull_requests_limit": 5
},
{
"package_ecosystem": "docker",
"directory": "/",
"schedule": "weekly",
"open_pull_requests_limit": 5
},
{
"package_ecosystem": "github-actions",
"directory": "/",
"schedule": "weekly",
"open_pull_requests_limit": 5
}
],
"ecosystems": ["docker", "github-actions", "npm"],
"update_count": 3
}
}
}
Configuration
Configure this collector in your lunar-config.yml.
Inputs
| Input | Required | Default | Description |
|---|---|---|---|
paths
|
Optional |
.github/dependabot.yml,.github/dependabot.yaml
|
Comma-separated list of Dependabot config file paths to check (first match wins) |
Documentation
View on GitHubDependabot Collector
Parses Dependabot configuration to collect dependency update settings and covered ecosystems.
Overview
This collector scans the repository for a .github/dependabot.yml configuration file and parses its contents. It extracts the schema version, update entries (package ecosystem, directory, schedule), and produces a normalized list of covered ecosystems. This data feeds into the dep-automation policy to enforce dependency automation standards.
Collected Data
When no Dependabot config file is found, this collector writes nothing — object presence at .dep_automation.dependabot is itself the signal that Dependabot is configured. See collector-reference.md § Write Nothing When Technology Not Detected.
When a config file is found, this collector writes to the following Component JSON paths:
| Path | Type | Description |
|---|---|---|
.dep_automation.dependabot.valid |
boolean | Whether the YAML config has valid syntax |
.dep_automation.dependabot.path |
string | Path to the config file |
.dep_automation.dependabot.version |
number | Dependabot schema version (typically 2) — present when valid: true and the config declares it |
.dep_automation.dependabot.updates[] |
array | Update entries with ecosystem, directory, and schedule — present when valid: true |
.dep_automation.dependabot.ecosystems |
array | Sorted, deduplicated list of covered ecosystem names — present when valid: true |
.dep_automation.dependabot.update_count |
number | Total number of update entries — present when valid: true |
Collectors
| Collector | Description |
|---|---|
config |
Parses .github/dependabot.yml for update configuration |
Installation
Add to your lunar-config.yml:
collectors:
- uses: github://earthly/lunar-lib/collectors/dependabot@v1.0.0
on: ["domain:your-domain"]
Open Source
This collector is open source and available on GitHub. Contribute improvements, report issues, or fork it for your own use.
Common Use Cases
Explore guardrails that use data from Dependabot Collector.
Ready to Automate Your Standards?
See how Lunar can turn your AGENTS.md, engineering wiki, compliance docs, or postmortem action items into automated guardrails with our 100+ built-in guardrails.