Skip to content

Commit

Permalink
attestations: ignore spdx parse errors
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc committed Dec 16, 2022
1 parent 3959dc4 commit 244caf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporter/containerimage/attestations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 244caf6

Please sign in to comment.