fix(ci): route Dependabot PRs to develop, not main - #40
Merged
Conversation
Review Summary by QodoRoute Dependabot PRs to develop branch
WalkthroughsDescription• Route Dependabot PRs to develop branch instead of main • Add target-branch: "develop" to pip ecosystem configuration • Add target-branch: "develop" to github-actions ecosystem configuration Diagramflowchart LR
dependabot["Dependabot Updates"]
config[".github/dependabot.yml"]
pip["pip ecosystem"]
actions["github-actions ecosystem"]
develop["develop branch"]
dependabot --> config
config --> pip
config --> actions
pip -- "target-branch: develop" --> develop
actions -- "target-branch: develop" --> develop
File Changes1. .github/dependabot.yml
|
Code Review by Qodo
1. Dependabot bypasses PR scan
|
| updates: | ||
| - package-ecosystem: "pip" | ||
| directory: "/" | ||
| target-branch: "develop" |
There was a problem hiding this comment.
1. Dependabot bypasses pr scan 🐞 Bug ⛨ Security
With Dependabot now targeting develop, dependency update PRs will no longer trigger the OSV-Scanner workflow because security-scan.yml only runs for pull requests against main, allowing dependency updates to merge without PR-time vulnerability scanning.
Agent Prompt
### Issue description
Dependabot PRs are now opened against `develop`, but the OSV security scan workflow only triggers on PRs targeting `main`. This means dependency update PRs (the ones most likely to introduce vulnerable packages) won’t receive the intended PR-time OSV scan.
### Issue Context
- Dependabot is configured to target `develop`.
- The OSV security workflow’s `pull_request` trigger is restricted to `branches: [main]`.
- Repository documentation claims OSV-Scanner runs “on every PR”, which won’t hold for `develop`-targeted PRs.
### Fix Focus Areas
- .github/workflows/security-scan.yml[3-9]
- .github/dependabot.yml[3-8]
- SECURITY.md[19-32]
### Suggested change
Update `.github/workflows/security-scan.yml` so `on.pull_request.branches` includes `develop` (e.g., `[develop, main]`). If you intentionally only want to scan `main`, then update `SECURITY.md` to reflect that OSV-Scanner is not run on every PR and consider an alternate mechanism to scan `develop` dependency PRs.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
alain-sv
force-pushed
the
fix/dependabot-target-develop
branch
from
May 13, 2026 08:59
7ab823d to
3218f79
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
target-branch: "develop"to bothpipandgithub-actionsecosystems in.github/dependabot.ymlDependabot was defaulting to the repository's default branch (
main) when creating update PRs. This routes all Dependabot update PRs todevelopinstead, consistent with the standard development flow for this repo.Test plan
develop🤖 Generated with Claude Code