-
Notifications
You must be signed in to change notification settings - Fork 60.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
target-branch
option for dependabot
#12455
Comments
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
@channelbeta |
Hi @channelbeta - thanks for letting us know that this description is unclear. All the options in the Dependabot security update pull requests are always opened against the default branch for the repository. Consequently, when you define an alternative Is that explanation any clearer? |
Hi @felicitymay , thanks for taking the time to clarify this topic. Based on your reply, my understanding is:
So, as an example, suppose that the package manager is Cargo, and my dependency files are inside of version: 2
updates:
- package-ecosystem: "cargo"
directory: "/code"
schedule:
interval: "daily"
assignees:
- channelbeta In the case above, both types of PR will have channelbeta as the assignee, right? But now, if I change the configuration to: version: 2
updates:
- package-ecosystem: "cargo"
directory: "/code"
target-branch: "develop"
schedule:
interval: "daily"
assignees:
- channelbeta Then version update PRs will be raised to branch If the above is correct, the |
Hi @channelbeta - thanks for your great illustration. I think that this will help anyone else with questions understand the behavior better ✨ For your examples above, "Meaning that, after setting target-branch, security updates will go back to the default behavior for the Cargo package manager. Correct?" Yes. This is my understanding of how this works. For the |
Thanks for the confirmation! I think that this issue can be closed now. Have a nice week 😃 |
I had the same question. By what I understood it's possible to change the the Is there any plans to support changing the I am asking that because in my case the repositories have a "dev" branch that have more recent code than the "main" branch (and might contain newer versions for the dependencies), plus code merged on "dev" will be tested in a QA env before going to prod (which is related to the "main" branch). So merging "security updates" PRs directly on main, kind of break the development process, because it was supposed to be merged on dev branch first. Thanks. cc @felicitymay |
Hi @lucasdavila - that sounds like helpful feedback for the team, I'll pass it on. ✨ For future product feedback, the best location is: https://github.com/community/community/discussions/categories/code-security. |
Great, thanks!! @felicitymay |
I have a question on where to add the ".github\dependabot.yml". Should that be the default branch, or the branch we want to scan for version and security updates ? |
Hi @KameshKrishnan - since this issue was closed back in 2021, would you mind opening a new issue asking for the documentation on this to be clarified? You need to add |
Hi, @felicitymay I am also interested in @lucasdavila use case - we want to change the Is there any progress on this feature? Is there an issue I can track? |
Hi @andreia-oca 👋🏻 I don't know. I'll let the product team know about your feedback and see if there's a public issue. |
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
What part(s) of the article would you like to see updated?
The section about
target-branch
option:https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#target-branch
I'm failing to understand that last part (in bold). I've done a quick search on the web and found this question, which also shows a bit of doubt about the meaning of the wording on the docs.
What does it mean? "The settings (which settings?) for this package manager (which package manager?) will no longer affect any pull requests raised for security updates (no longer affect + security updates doesn't sound good to me, am I losing something with this option activated?)".
The expected outcome is a clear explanation of any effects that may arise from using this option.
Additional information
Hi. I've raised the issue as asked by @ramyaparimi in this discussion:
https://github.com/github/docs/discussions/12345
The discussion number though 🤯 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣
The text was updated successfully, but these errors were encountered: