Commit 338d5d3
committed
feat(scan/apk): Respect GRYPE_DB_MAX_ALLOWED_BUILT_AGE
There was about a one hour window of time where I couldn't scan Hadoop
or gRPC while working through vulnerabilities without possibly building
the database locally (because it hadn't been updated yet) so I took a
quick look at how we handle this in wolfictl and found it deviates from
the behavior in grype
Similar to grype, respect GRYPE_DB_MAX_ALLOWED_BUILT_AGE so that users
can set this to whatever their preferred duration is. Default to 24
hours
Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>1 parent ffb7f8d commit 338d5d3
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
146 | | - | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
0 commit comments