-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(iam_inline_policy_no_administrative_privileges): set resource id as the entity name #2820
fix(iam_inline_policy_no_administrative_privileges): set resource id as the entity name #2820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #2820 +/- ##
==========================================
- Coverage 86.24% 86.14% -0.11%
==========================================
Files 538 539 +1
Lines 17292 17331 +39
==========================================
+ Hits 14913 14929 +16
- Misses 2379 2402 +23
... and 12 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -10,7 +10,7 @@ def execute(self) -> Check_Report_AWS: | |||
report = Check_Report_AWS(self.metadata()) | |||
report.region = iam_client.region | |||
report.resource_arn = policy.arn | |||
report.resource_id = policy.name | |||
report.resource_id = policy.entity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? Please include an explanation in the PR body.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the inline policy it is not an unique resource and it may lead to duplicate finding IDs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see the "inline" part, totally agree then. Good catch!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔝
Description
Set resource id as the entity name.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.