Commit e8cda11
authored
ci: scan every nested module with Dependabot and pin the update window (#1020)
The gomod entries listed only `directory: "/"`, so osprom, osotel, cmd/osgen,
and cmd/osapilint were never scanned. cmd/osgen sat on kin-openapi 0.142.0
that way until its stale transitive golang.org/x/text picked up
CVE-2026-56852. Dependabot has no equivalent of the Makefile's SUBMODULES
discovery or lint.yml's discover-submodules job, so each module needs an
explicit entry.
Both gomod entries now use the plural `directories` key, listing the modules
that exist on their respective target branch: all five on main, root plus
cmd/osgen on v4. Paths are enumerated rather than globbed so the osapilint
testdata corpus fixtures, which pin old dependency versions deliberately, stay
out of scope.
All four entries also pin day, time, and timezone. A bare `interval: weekly`
lets Dependabot choose the day and reads any time as UTC. Tuesday 14:00 in
Seattle is Wednesday morning in Melbourne, so the batch lands in work hours at
both ends; 07:00 Pacific is the floor, since the two cities are 17 hours apart
for part of the year and anything earlier puts Melbourne back on Tuesday.
Document the workspace in DEVELOPER_GUIDE.md while here: what each nested
module keeps out of the core dependency graph, that go.work is committed so a
clone needs no setup, and that it is load-bearing rather than a convenience.
osprom and osotel require v5.0.0-rc3, a tag predating the observer API they
compile against, so the workspace is what points them at the local root and
GOWORK=off fails to build their tests until that require is bumped.
Note for future readers: Dependabot reads this file only from the default
branch, so the target-branch: "v4" entries here govern v4. Editing
.github/dependabot.yml on the v4 branch itself has no effect.
Signed-off-by: Ryan Yuan <ryan.yuan@crowdstrike.com>1 parent 9e07dcf commit e8cda11
3 files changed
Lines changed: 54 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
5 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 | | |
7 | 19 | | |
8 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
9 | 24 | | |
10 | 25 | | |
11 | 26 | | |
| |||
15 | 30 | | |
16 | 31 | | |
17 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
18 | 36 | | |
19 | 37 | | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
23 | | - | |
| 41 | + | |
24 | 42 | | |
25 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
26 | 46 | | |
27 | 47 | | |
28 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
29 | 52 | | |
30 | 53 | | |
31 | 54 | | |
| |||
35 | 58 | | |
36 | 59 | | |
37 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
38 | 64 | | |
39 | 65 | | |
40 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
76 | 99 | | |
77 | 100 | | |
78 | 101 | | |
| |||
0 commit comments