inspect: break after first matching attestation

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell 2023-01-09 18:09:06 +00:00
parent 6852713121
commit 19d16aa941
1 changed files with 2 additions and 0 deletions

View File

@ -278,6 +278,7 @@ func (l *loader) scanSBOM(ctx context.Context, fetcher remotes.Fetcher, r *resul
as.sbom = &sbomStub{
SPDX: dt,
}
break
}
}
}
@ -308,6 +309,7 @@ func (l *loader) scanProvenance(ctx context.Context, fetcher remotes.Fetcher, r
as.slsa = &slsaStub{
Provenance: dt,
}
break
}
}
}