Skip to content

Commit b4ddc80

Browse files
authored
feat(image): disable secret scanning in base layers (fanal#483)
1 parent 2061873 commit b4ddc80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

artifact/image/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (a Artifact) inspect(ctx context.Context, missingImage string, layerKeys, b
168168
// If it is a base layer, secret scanning should not be performed.
169169
var disabledAnalyers []analyzer.Type
170170
if slices.Contains(baseDiffIDs, diffID) {
171-
//disabledAnalyers = append(disabledAnalyers, analyzer.TypeSecret)
171+
disabledAnalyers = append(disabledAnalyers, analyzer.TypeSecret)
172172
}
173173

174174
layerInfo, err := a.inspectLayer(ctx, diffID, disabledAnalyers)

0 commit comments

Comments
 (0)