Skip to content

Commit 204a511

Browse files
Merge pull request #2 from compliance-framework/bugfix/stream-id-seed
Add sgId to streamId map to make them unique from one another
2 parents 270cb14 + 511b054 commit 204a511

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ func (l *CompliancePlugin) Eval(request *proto.EvalRequest, apiHelper runner.Api
200200
assessmentResult.End = timestamppb.New(endTime)
201201

202202
streamId, err := sdk.SeededUUID(map[string]string{
203-
"type": "aws-cloud--network-security",
204-
"_policy": policyPath,
203+
"type": "aws-cloud--network-security",
204+
"_policy": policyPath,
205+
"security_group_id": fmt.Sprintf("%v", instance["SecurityGroupID"]),
205206
})
206207
if err != nil {
207208
l.logger.Error("Failed to seedUUID", "error", err)

0 commit comments

Comments
 (0)