Skip to content

Commit eee4a93

Browse files
committed
ci: add .github/dependabot.yml to tame Dependabot PR noise
The repo had no explicit Dependabot config, so Dependabot ran on full defaults: one PR per package per manifest, across every manifest in the tree -- including the e2e test fixtures that are intentionally crafted to exercise Socket's scanner. The cumulative result was the "PR pileup" this PR is consolidating. New config: - uv ecosystem (main app): grouped weekly into ONE minor/patch PR and one major PR; matches the existing python:uv labeling - github-actions: grouped weekly into ONE minor/patch PR - docker: separate weekly PR per Dockerfile change - 7-day cooldown across all ecosystems to give upstream time to pull bad releases - e2e fixtures (tests/e2e/fixtures/{simple-npm,simple-pypi}) are INTENTIONALLY excluded -- their pins should be chosen for supply- chain signal, not auto-bumped (this is why we had three fixture PRs in the cleanup) Pattern adapted from SocketDev/socket-basics. Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
1 parent d8e4534 commit eee4a93

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Dependabot configuration for socket-python-cli.
2+
#
3+
# Design notes:
4+
# - Python deps are grouped into ONE weekly PR (minor/patch) and a separate
5+
# PR for major bumps. Drastically reduces PR clutter compared to the
6+
# default behavior of one PR per package.
7+
# - GitHub Actions are grouped similarly into one weekly PR.
8+
# - Docker (the project Dockerfile) is tracked separately.
9+
# - The e2e test fixtures under `tests/e2e/fixtures/` are INTENTIONALLY
10+
# omitted: those manifests exist to exercise Socket scanning and should
11+
# be chosen for the supply-chain signal they expose, not auto-bumped.
12+
# - 7-day cooldown across all ecosystems gives upstream maintainers time
13+
# to pull bad releases before we receive a PR.
14+
15+
version: 2
16+
updates:
17+
18+
# Main app Python deps (uv-tracked)
19+
- package-ecosystem: "uv"
20+
directory: "/"
21+
schedule:
22+
interval: "weekly"
23+
open-pull-requests-limit: 2
24+
groups:
25+
python-minor-patch:
26+
patterns:
27+
- "*"
28+
update-types:
29+
- "minor"
30+
- "patch"
31+
python-major:
32+
patterns:
33+
- "*"
34+
update-types:
35+
- "major"
36+
labels:
37+
- "dependencies"
38+
- "python:uv"
39+
commit-message:
40+
prefix: "chore"
41+
include: "scope"
42+
cooldown:
43+
default-days: 7
44+
45+
# GitHub Actions used in workflows
46+
- package-ecosystem: "github-actions"
47+
directory: "/"
48+
schedule:
49+
interval: "weekly"
50+
open-pull-requests-limit: 2
51+
groups:
52+
github-actions-minor-patch:
53+
patterns:
54+
- "*"
55+
update-types:
56+
- "minor"
57+
- "patch"
58+
labels:
59+
- "dependencies"
60+
- "github-actions"
61+
commit-message:
62+
prefix: "ci"
63+
include: "scope"
64+
cooldown:
65+
default-days: 7
66+
67+
# Project Dockerfile base images and pinned binaries
68+
- package-ecosystem: "docker"
69+
directory: "/"
70+
schedule:
71+
interval: "weekly"
72+
open-pull-requests-limit: 2
73+
labels:
74+
- "dependencies"
75+
- "docker"
76+
commit-message:
77+
prefix: "chore"
78+
include: "scope"
79+
cooldown:
80+
default-days: 7

0 commit comments

Comments
 (0)