-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
refactor(finding): Add metadata object #5447
base: master
Are you sure you want to change the base?
refactor(finding): Add metadata object #5447
Conversation
check_id: str | ||
check_title: str | ||
check_type: str | ||
uid: str |
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.
Warning
Changed finding_uid
to uid
finding_dict["RESOURCE_TAGS"] = unroll_dict(finding.resource_tags) | ||
finding_dict["COMPLIANCE"] = unroll_dict( | ||
finding.compliance, separator=": " | ||
finding_dict = {} |
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.
Warning
This is needed because now the Finding
object does not mimic the CSV output format.
@@ -173,7 +157,7 @@ def generate_output( | |||
check_output.project_id | |||
].organization.id | |||
# TODO: for now is None since we don't retrieve that data | |||
output_data["account_organization"] = provider.projects[ | |||
output_data["account_organization_name"] = provider.projects[ |
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 account_organization
was not a valid field.
"categories": ["test-category"], | ||
"depends_on": ["test-dependency"], | ||
"related_to": ["test-related-to"], |
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.
This was wrong because these fields must be a list.
You can check the documentation for this PR here -> Prowler Documentation |
You can check the documentation for this PR here -> Prowler Documentation |
You can check the documentation for this PR here -> Prowler Documentation |
You can check the documentation for this PR here -> Prowler Documentation |
Description
finding_uid
touid
metadata
toFinding
with aget_metadata
method.Checklist
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.