Dependabot is creating PRs? #203170
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaOther Discussion DetailsI'm sorry to select Tonight I thought I'd spend some time deleting repos that I've not used it years. I had 131 repos and just felt that was too many. So, I spent time reviewing and blowing away repos that I felt I could get rid of. The repos I got rid of were all cloned from GitHub Skills. But I discovered something in 6 of the repos I reviewed. 5 of them had a PR waiting since 2024 or 2025, all related to upgrading the use of What's going on? Why is Dependabot creating all these PRs? And they sit around for years. What does it cost to have Dependabot do this for me? Is it doing this for everyone on GitHub? Is it doing this for all repos in Enterprise Organizations? |
Replies: 4 comments 3 replies
|
@rfalanga A few things are happening here:
So it's completely possible for some of your repositories to receive Dependabot PRs while others never do. In your case, the |
This comment was marked as spam.
This comment was marked as spam.
|
It isn't happening to everyone, and it isn't a default — a repo only gets these PRs if it contains a One of your repos still has open ones, and it has that file — 208 bytes: # rfalanga/BethanysPieShopHRM — .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"The gh api '/repos/rfalanga/BethanysPieShopHRM/commits?path=.github/dependabot.yml' \
--jq '.[] | "\(.commit.author.date[0:10]) \(.commit.author.name) \(.commit.message)"'A Copilot coding agent session committed it. That explains this repo, at least. The 2024/2025 ones you deleted I can't check any more, but the mechanism is the same — something put that file in the repo, and from then on Dependabot checked weekly. What it costs: nothing. From the Actions billing docs, under "Free use of GitHub Actions" — "The use of standard GitHub-hosted runners is free: in public repositories, for GitHub Pages, for Dependabot." It doesn't touch your minutes. Why they sat for years: the same docs note that "when maintainers of a repository stop interacting with Dependabot pull requests, Dependabot temporarily pauses its updates." So an ignored PR goes quiet rather than piling up more. Worth separating two things people often merge:
To stop it in a repo, delete or trim For reference, your two currently open PRs are |
|
Dependabot is probably enabled in those repos (often via the template or a dependabot.yml file), so it automatically opens PRs for dependency updates like actions/checkout. There's no extra cost for using it on GitHub, and old PRs will stay open until you merge or close them. It's not enabled for every repo by default—repo or organization settings control it. |
@rfalanga
What you're seeing is normal behavior, and it's usually caused by Dependabot version updates being enabled for those repositories.
A few things are happening here:
Dependabot doesn't only update dependencies in your code. It can also update GitHub Actions used in your workflows, such as
actions/checkout. When a new major version is available, Dependabot can automatically open a pull request suggesting the upgrade.Why did it happen if you don't remember enabling it? There are a few possibilities:
.github/dependabot.ymlconfiguration file.