From e83ee7a779d958a79f1c47490d8951ad46ce778c Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Wed, 30 Oct 2024 14:38:51 +0100 Subject: [PATCH] Store access levels directly on the reported section (#2265) --- plugins/aws/fix_plugin_aws/access_edges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/aws/fix_plugin_aws/access_edges.py b/plugins/aws/fix_plugin_aws/access_edges.py index 5357fa4621..e0b3dd4dda 100644 --- a/plugins/aws/fix_plugin_aws/access_edges.py +++ b/plugins/aws/fix_plugin_aws/access_edges.py @@ -836,7 +836,7 @@ def add_access_edges(self) -> None: for permission in permissions: access[permission.level] = True - reported = to_json({"permissions": permissions, "access": access}, strip_nulls=True) + reported = to_json({"permissions": permissions} | access, strip_nulls=True) self.builder.add_edge(from_node=context.principal, edge_type=EdgeType.iam, reported=reported, node=node)