Skip to content
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(securityhub): archive SecurityHub findings in empty regions #2908

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

sergargar
Copy link
Member

Description

Regarding #2190, when a region has no findings archive all the older findings in Security Hub in that region.

License

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

@sergargar sergargar requested a review from a team as a code owner October 5, 2023 10:43
@jfagoagas jfagoagas added the provider/aws Issues/PRs related with the AWS provider label Oct 5, 2023
jfagoagas
jfagoagas previously approved these changes Oct 5, 2023
Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good catch @sergargar !!

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #2908 (5ad86fe) into master (49a437d) will decrease coverage by 0.03%.
The diff coverage is 28.57%.

@@            Coverage Diff             @@
##           master    #2908      +/-   ##
==========================================
- Coverage   86.24%   86.22%   -0.03%     
==========================================
  Files         540      540              
  Lines       17496    17498       +2     
==========================================
- Hits        15089    15087       -2     
- Misses       2407     2411       +4     
Files Coverage Δ
...ler/providers/aws/lib/security_hub/security_hub.py 60.97% <28.57%> (-1.53%) ⬇️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sergargar sergargar merged commit 3955450 into master Oct 5, 2023
6 of 8 checks passed
@sergargar sergargar deleted the archive-shub-regions branch October 5, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Prowler doesn't archive old SecurityHub findings from regions with zero new findings
2 participants