Skip to main content

require-dependabot-config-file

Require .github/dependabot.yml or .github/dependabot.yaml for automated dependency updates on GitHub.

Targeted pattern scope​

This rule checks for .github/dependabot.yml or .github/dependabot.yaml.

What this rule reports​

This rule reports repositories that enable GitHub-oriented presets without a Dependabot configuration file.

Why this rule exists​

Dependabot cannot manage dependency update cadence or security patch pull requests unless the repository declares update policy explicitly.

That makes .github/dependabot.yml (or .github/dependabot.yaml) the baseline contract for predictable dependency maintenance on GitHub.

❌ Incorrect​

// Repository files
// .
// ├── .github/
// │ └── workflows/
// ├── README.md
// └── package.json
//
// Missing: .github/dependabot.yml or .github/dependabot.yaml

✅ Correct​

// Repository files
// .
// └── .github/
// ├── dependabot.yaml
// └── workflows/

ESLint flat config example​

import repoPlugin from "eslint-plugin-repo";

export default [
repoPlugin.configs.github,
{
plugins: { "repo-compliance": repoPlugin },
rules: {
"repo-compliance/require-dependabot-config-file": "error",
},
},
];

When not to use it​

Disable this rule only if the repository intentionally does not use Dependabot for dependency management on GitHub.

Rule catalog ID: R010

Further reading​