Commit 3c526e7
ci: suppress dependabot updates for test fixture manifests (#422)
## Summary
- **Problem:** `exclude-paths` in `dependabot.yml` only applies to
version updates, [not security
updates](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#exclude-paths).
This caused 8+ noisy PRs from dependabot trying to bump
intentionally-pinned vulnerable deps in test fixture manifests under
`src/test/resources/tst_manifests/` and `src/test/resources/msc/`.
- **Solution:** Add dedicated dependabot entries per ecosystem that
target the test fixture directories with `ignore: [{dependency-name:
"*"}]` to suppress both version and security update PRs
([ref](https://ovirium.com/blog/exclude-directory-from-dependabot-checks/)).
The `ignore` option [supports security
updates](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#ignore)
unlike `exclude-paths`.
### Changes
| Ecosystem | Change |
|---|---|
| maven (production) | Unchanged |
| maven (test fixtures) | New entry with `directories` targeting
`tst_manifests/maven/**` + `it/maven/**` + `ignore: *` |
| npm (test fixtures) | Replaced `directory: "/"` + `exclude-paths` with
`directories` targeting all JS test fixture dirs + `ignore: *` |
| pip | Replaced with targeted `directories` pointing to `pip/**` +
`it/pypi/**` + `ignore: *` |
| gomod | Replaced with targeted `directories` pointing to `golang/**`,
`it/golang/**`, `msc/golang/**` + `ignore: *` |
| gradle | Replaced with targeted `directories` pointing to
`gradle-groovy/**`, `gradle-kotlin/**` + `it/` equivalents + `ignore: *`
|
| cargo | Replaced with targeted `directories` pointing to `cargo/**` +
`ignore: *` |
Mirrors guacsec/trustify-da-javascript-client#477.
## Test plan
- [ ] Verify dependabot stops creating PRs for test fixture manifests
(check after next scan cycle)
- [ ] Verify production maven security/version updates still work
- [ ] Close existing 8 test fixture dependabot PRs after confirming
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1aee31c commit 3c526e7
1 file changed
Lines changed: 57 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
16 | 28 | | |
17 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
18 | 37 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
23 | 42 | | |
24 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
25 | 46 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
30 | 51 | | |
31 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
32 | 56 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
37 | 61 | | |
38 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
39 | 67 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
44 | 72 | | |
45 | | - | |
| 73 | + | |
| 74 | + | |
46 | 75 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
0 commit comments