Commit 7a7a402
AWS Inspector 2 Line number bug + other changes (#14616)
* Fixed line number bug and added multiple fields to Package Vulnerability finding type
* changed startLine and endLine to keep descriptions consistent with past imports
* Add LocationData.dependency() support for package vulnerability findings
Populate unsaved_locations with dependency location data from
vulnerablePackages, gated behind V3_FEATURE_LOCATIONS. Also fix
process_endpoints to extend rather than overwrite unsaved_locations
so dependency locations are preserved.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Remove validate_locations call from metadata test
The test fixture contains Lambda ARNs with "$LATEST" which produces
invalid hostnames for endpoint validation. Endpoint validation is
already covered by the other parser tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Gate LocationData test assertions behind V3_FEATURE_LOCATIONS
Finding.unsaved_locations only exists when V3_FEATURE_LOCATIONS is
enabled, so the dependency location assertions must be conditional.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix import sorting for ruff linting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8d66b07 commit 7a7a402
3 files changed
Lines changed: 3414 additions & 9 deletions
File tree
- dojo/tools/aws_inspector2
- unittests
- scans/aws_inspector2
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
126 | | - | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
134 | 162 | | |
135 | 163 | | |
136 | 164 | | |
| |||
149 | 177 | | |
150 | 178 | | |
151 | 179 | | |
152 | | - | |
153 | | - | |
| 180 | + | |
| 181 | + | |
154 | 182 | | |
155 | 183 | | |
156 | 184 | | |
| |||
162 | 190 | | |
163 | 191 | | |
164 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
165 | 197 | | |
166 | 198 | | |
167 | 199 | | |
| |||
270 | 302 | | |
271 | 303 | | |
272 | 304 | | |
273 | | - | |
| 305 | + | |
274 | 306 | | |
275 | 307 | | |
276 | | - | |
| 308 | + | |
277 | 309 | | |
278 | 310 | | |
0 commit comments