Skip to content

Commit 29f4368

Browse files
igerberclaude
andcommitted
chore(ci): add Dependabot config and least-privilege workflow permissions
- Add .github/dependabot.yml covering pip (root), cargo (rust/), and github-actions ecosystems on a weekly schedule. Minor/patch updates group into one PR per ecosystem; major bumps stay individual. - Declare workflow-scoped `permissions: contents: read` on ci-gate, notebooks, and rust-test workflows so they don't silently inherit broader scopes if the repo default is ever changed. publish.yml and ai_pr_review.yml already declare per-job permissions and are unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 903d3ab commit 29f4368

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
open-pull-requests-limit: 5
9+
labels:
10+
- "dependencies"
11+
- "python"
12+
groups:
13+
python-minor-patch:
14+
update-types:
15+
- "minor"
16+
- "patch"
17+
18+
- package-ecosystem: "cargo"
19+
directory: "/rust"
20+
schedule:
21+
interval: "weekly"
22+
day: "monday"
23+
open-pull-requests-limit: 5
24+
labels:
25+
- "dependencies"
26+
- "rust"
27+
groups:
28+
rust-minor-patch:
29+
update-types:
30+
- "minor"
31+
- "patch"
32+
33+
- package-ecosystem: "github-actions"
34+
directory: "/"
35+
schedule:
36+
interval: "weekly"
37+
day: "monday"
38+
open-pull-requests-limit: 5
39+
labels:
40+
- "dependencies"
41+
- "github-actions"
42+
groups:
43+
actions-minor-patch:
44+
update-types:
45+
- "minor"
46+
- "patch"

.github/workflows/ci-gate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
types: [opened, synchronize, reopened, labeled, unlabeled]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
ci-gate:
1013
name: CI Gate

.github/workflows/notebooks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
# Weekly Sunday 6am UTC — smoke test that notebooks still execute cleanly
2121
- cron: '0 6 * * 0'
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
execute-notebooks:
2528
name: Execute tutorial notebooks

.github/workflows/rust-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
- 'pyproject.toml'
2020
- '.github/workflows/rust-test.yml'
2121

22+
permissions:
23+
contents: read
24+
2225
env:
2326
CARGO_TERM_COLOR: always
2427

0 commit comments

Comments
 (0)