prowler-cloud / prowler

Prowler is an Open Source Security tool for AWS, Azure, GCP and Kubernetes to do security assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. Includes CIS, NIST 800, NIST CSF, CISA, FedRAMP, PCI-DSS, GDPR, HIPAA, FFIEC, SOC2, GXP, Well-Architected Security, ENS and more
https://prowler.com
Apache License 2.0
9.99k stars 1.47k forks source link

chore(ocsf): add OCSF class for outputs #4355

Closed pedrooot closed 1 week ago

pedrooot commented 1 week ago

Description

It's needed to modularize the code for the specific ocsf output.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 85.89744% with 11 lines in your changes missing coverage. Please review.

Project coverage is 87.50%. Comparing base (ca03374) to head (3a93ce9). Report is 11 commits behind head on master.

Files Patch % Lines
prowler/__main__.py 0.00% 6 Missing :warning:
prowler/lib/outputs/ocsf/ocsf.py 92.64% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4355 +/- ## ========================================== + Coverage 87.41% 87.50% +0.09% ========================================== Files 849 852 +3 Lines 26495 26592 +97 ========================================== + Hits 23160 23270 +110 + Misses 3335 3322 -13 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.