From 244caf6bb97b8257251664e7204b3e7cd8e5d5ad Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Thu, 15 Dec 2022 17:05:08 +0000 Subject: [PATCH] attestations: ignore spdx parse errors Signed-off-by: Justin Chadwell --- exporter/containerimage/attestations.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exporter/containerimage/attestations.go b/exporter/containerimage/attestations.go index 680be58596d9..c9eef91c0c4a 100644 --- a/exporter/containerimage/attestations.go +++ b/exporter/containerimage/attestations.go @@ -43,7 +43,8 @@ func supplementSBOM(ctx context.Context, s session.Group, target cache.Immutable doc, err := decodeSPDX(content) if err != nil { - return att, err + // ignore decoding error + return att, nil } layers, err := newFileLayerFinder(target, targetRemote)