Check if
.github/dependabot.ymlalready exists in the project.If
.github/dependabot.ymldoes not already exist, create it.- For your reference, here is a minimal dependabot.yml file that monitors npm dependencies daily:
version: 2 updates: - package-ecosystem: "npm" directory: "/" schedule: interval: "daily"Populate
.github/dependabot.ymlwith the correct configuration for the project's dependencies. Here is a common use cases you will encounter (but this is listed just as an example, it is not exhaustive so refer to the "Additonal resources" if other dependencies are in scope):- Search the root of the project, and all subdirectories recursively, for
package.jsonfiles. For eachpackage.jsonfile found, add an entry fornpmdependencies in the.github/dependabot.ymlfile with the correct directory path to thepackage.jsonfile. For example, if apackage.jsonfile is found in the root of the project, in aclientdirectory, and in acdkdirectory, the dependabot.yml file should have 3 entries for npm dependencies with the correct directory paths:
updates: - package-ecosystem: 'npm' directory: '/' schedule: interval: 'daily' - package-ecosystem: 'npm' directory: '/cdk' schedule: interval: 'daily' - package-ecosystem: 'npm' directory: '/client' schedule: interval: 'daily'- As of 02/08/2026, the full list of languages/technologies supported are: Bazel, Bundler, Bun, Cargo, Composer, Devcontainers, Docker, Docker Compose, Dotnet SDK, Elm, GitHub Actions, Gitsubmodule, Gomod (Go Modules), Gradle, Helm, Hex (Hex), Julia, Maven, NPM and Yarn, NuGet, OpenTofu, Pip, Pub, Swift, Terraform, UV. But you should always double check the "Additional resources" link below via WebSearch for the most up to date list of supported languages and technologies. Do not skip the WebSearch when confirming this.
- Search the root of the project, and all subdirectories recursively, for
Explain to the user why you chose the specific
directorypath for each entry in the dependabot.yml file and give links to specific documentation if available to further help them understand it's truly correct.
Additional resources
- For the complete YAML spec, refer https://docs.github.com/en/code-security/concepts/supply-chain-security/about-the-dependabot-yml-file
- For the official up to date list of supported languages and technologies, refer https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference
Converted and distributed by TomeVault — claim your Tome and manage your conversions.