Complete safety and transfer remediation verification
This commit is contained in:
@@ -24,6 +24,16 @@ func (c *ArtifactCatalog) HydrateExtractionArtifacts(
|
||||
paths SessionPaths,
|
||||
m *manifest.Manifest,
|
||||
configured map[string]ExtractionArtifactDefinition,
|
||||
) {
|
||||
c.HydrateExtractionArtifactsExcept(paths, m, configured, nil)
|
||||
}
|
||||
|
||||
// HydrateExtractionArtifactsExcept skips payload reads for excluded sources.
|
||||
func (c *ArtifactCatalog) HydrateExtractionArtifactsExcept(
|
||||
paths SessionPaths,
|
||||
m *manifest.Manifest,
|
||||
configured map[string]ExtractionArtifactDefinition,
|
||||
excluded map[string]bool,
|
||||
) {
|
||||
if c == nil || m == nil || len(configured) == 0 {
|
||||
return
|
||||
@@ -32,7 +42,7 @@ func (c *ArtifactCatalog) HydrateExtractionArtifacts(
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
proof := InspectExtractionEvidence(paths, m, configured, input)
|
||||
proof := inspectExtractionEvidence(paths, m, configured, input, excluded)
|
||||
if proof.State != ExtractionEvidenceValid {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user