From 45680382cae130202e3ae77acb7030f06986bcc4 Mon Sep 17 00:00:00 2001 From: Delnat Wito Date: Fri, 28 Jul 2023 16:48:58 +0200 Subject: [PATCH] fix: fix annotations query --- .../src/sarif/suppressions/plugins/AnnotationSuppressor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/validation/src/sarif/suppressions/plugins/AnnotationSuppressor.ts b/packages/validation/src/sarif/suppressions/plugins/AnnotationSuppressor.ts index 8a6c2401e..baa869f6f 100644 --- a/packages/validation/src/sarif/suppressions/plugins/AnnotationSuppressor.ts +++ b/packages/validation/src/sarif/suppressions/plugins/AnnotationSuppressor.ts @@ -18,7 +18,7 @@ export class AnnotationSuppressor implements Suppressor { return []; } - const annotations = resource.content.metadata.annotations; + const annotations = resource.content?.metadata?.annotations; if (!annotations) { return [];