Skip to content

Commit

Permalink
Store access levels directly on the reported section (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
meln1k authored Oct 30, 2024
1 parent 6709108 commit e83ee7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/aws/fix_plugin_aws/access_edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e83ee7a

Please sign in to comment.