Commit 82256ac
fix: filter toolchain entries in GoModulesProvider (#387)
## Summary
- `isGoToolchainEntry()` now filters both `go@*` and `toolchain@*`
entries from Go SBOMs, aligning with the JS client's
`isSpecialGoModule()` behavior
- Added unit test verifying both entry types are filtered while normal
modules pass through
Closes [TC-3919](https://redhat.atlassian.net/browse/TC-3919)
## Test plan
- [x] Unit test `test_isGoToolchainEntry_filters_go_and_toolchain`
passes
- [ ] `mvn verify` passes
- [ ] Integration tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 79d8d54 commit 82256ac
2 files changed
Lines changed: 17 additions & 4 deletions
File tree
- src
- main/java/io/github/guacsec/trustifyda/providers
- test/java/io/github/guacsec/trustifyda/providers
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
201 | 214 | | |
202 | 215 | | |
203 | 216 | | |
| |||
0 commit comments