Skip to content

Commit aaffeec

Browse files
committed
scan: add a comment to justify the change to 120h
Signed-off-by: Hector Fernandez <[email protected]>
1 parent 901ee4f commit aaffeec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/scan/apk.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"time"
1616

1717
"github.com/adrg/xdg"
18-
"github.com/hako/durafmt"
1918
"github.com/anchore/grype/grype"
2019
v6 "github.com/anchore/grype/grype/db/v6"
2120
"github.com/anchore/grype/grype/db/v6/distribution"
@@ -38,6 +37,7 @@ import (
3837
sbomSyft "github.com/anchore/syft/syft/sbom"
3938
"github.com/chainguard-dev/clog"
4039
"github.com/charmbracelet/log"
40+
"github.com/hako/durafmt"
4141
"github.com/spf13/afero"
4242
anchorelogger "github.com/wolfi-dev/wolfictl/pkg/anchorelog"
4343
"github.com/wolfi-dev/wolfictl/pkg/sbom"
@@ -183,6 +183,7 @@ type Options struct {
183183
// DefaultOptions is the recommended default configuration for a new Scanner.
184184
// These options are suitable for most use scanning cases.
185185
var DefaultOptions = Options{
186+
// TODO(hectorj2f): This is a temporary change to 120h, ideally we recommend to set that maximum built age to 48h.
186187
MaxAllowedBuildAge: 120 * time.Hour,
187188
}
188189

0 commit comments

Comments
 (0)