Skip to content

Clarify conflicting documentation on Dependabot security updates and target branches #46515

Closed

Description

@jumpifnotzero

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#target-branch-

What part(s) of the article would you like to see updated?

This statement appears to contradict statements on another page:

Options defined for this package-ecosystem no longer apply to security updates because security updates always use the default branch for the repository.

However, the About the dependabot.yml file page states:

Define target branches for security updates

It is unclear whether Dependabot supports security updates targeting branches other than the default branch, and whether vulnerabilities in those branches are tracked independently of the default branch.

Additional information

No response

Activity

  1. added
    contentThis issue or pull request belongs to the Docs Content team
    on Oct 28, 2026
  2. added
    triageDo not begin working on this issue until triaged by the team
    on Oct 28, 2026
  3. added
    dependabotContent related to Dependabot
    and removed
    triageDo not begin working on this issue until triaged by the team
    on Oct 28, 2026
  4. subatoi commented on Oct 28, 2026

    @subatoi
    Contributor

    Thanks @jumpifnotzero, this will be reviewed by the appropriate team

  5. added
    help wantedAnyone is welcome to open a pull request to fix this issue
    on Oct 30, 2026
  6. mchammer01 commented on Oct 30, 2026

    @mchammer01
    Contributor

    @jumpifnotzero 👋🏻 - thanks for flagging this, you're right and I can see why it's confusing.

    The dependabot-options-reference.md article is correct: Dependabot always raises security update pull requests against the default branch only, even if target-branch is set for version updates.

    The bug is in about-the-dependabot-yml-file.md, under "For security updates." It lists "Define target branches for security updates" as something you can do, which isn't true. That bullet should be removed.

    I've added the help-wanted label so that anyone is welcome to pick this work up and fix the bug you've reported. Feel free to pick it up if you'd like, otherwise, I am sure another contributor will get to it.

    Thanks again for catching this 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamdependabotContent related to Dependabotdriver personahelp wantedAnyone is welcome to open a pull request to fix this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions