A security engineer wants Dependabot to automatically open pull requests whenever a direct npm dependency in the repository has a new patch or minor version available. They also want checks to run weekly rather than daily. Which file should they create, and where?
- A. A file named dependabot.json in the repository root
- B. A file named .github/workflows/dependabot.yml in the repository
- C. A file named .github/dependabot.yml in the repository✓ Correct
- D. A file named security-policy.yml in the .github directory
Explanation
Dependabot version updates are configured in '.github/dependabot.yml'. This file specifies the package ecosystem (e.g., npm), directory, and update schedule (e.g., weekly). 'dependabot.json' in the root is not a valid filename or location for Dependabot configuration. '.github/workflows/dependabot.yml' would be interpreted as a GitHub Actions workflow file, not a Dependabot configuration. 'security-policy.yml' is not a recognized configuration file for Dependabot; security policies are conventionally stored as SECURITY.md.