From 511b054e0028ad9ca9bd39a7fded244afe9ec381 Mon Sep 17 00:00:00 2001 From: Harry Lincoln Date: Mon, 17 Mar 2025 16:12:48 +0000 Subject: [PATCH] Add sgId to streamId map to make them unique from one another --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 24ba031..774476a 100644 --- a/main.go +++ b/main.go @@ -200,8 +200,9 @@ func (l *CompliancePlugin) Eval(request *proto.EvalRequest, apiHelper runner.Api assessmentResult.End = timestamppb.New(endTime) streamId, err := sdk.SeededUUID(map[string]string{ - "type": "aws-cloud--network-security", - "_policy": policyPath, + "type": "aws-cloud--network-security", + "_policy": policyPath, + "security_group_id": fmt.Sprintf("%v", instance["SecurityGroupID"]), }) if err != nil { l.logger.Error("Failed to seedUUID", "error", err)