-
Notifications
You must be signed in to change notification settings - Fork 95
Fix result and report id fetching in monthly-report script #1246
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
Conversation
The result fetching in the monthly-report script is adjusted in the following ways: - The selected hosts now also include ones that were last updated after the requested month. Otherwise they would be missing even if they were also updated in the requested month. - The number of results for a host is no longer limited by the "Rows per page" setting. - Instead of counting all results, only the distinct vulnerabilities (VTs) are counted. The new counting method also considers only the latest occurrence of a vulnerability in case the severity level has changed in the meantime. Overall, this should make the script behave more as expected. The new result counts by distinct VT should be more informative than the previous number that could be influenced by how many times a host was scanned.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Conventional Commits Report😢 No conventional commits found. 👉 Learn more about the conventional commits usage at Greenbone. |
🔍 Vulnerabilities of
|
| digest | sha256:bf0f024204cf9c7f3a99cf4ae09dc083a5aa1d649c9794954046ca72bf5a358b |
| vulnerabilities | |
| size | 72 MB |
| packages | 163 |
📦 Base Image debian:stable-20250811-slim
| also known as |
|
| digest | sha256:a1c1968fb091b256477e675a99ab3fa6f4c2d047ae7f506f92255cf5f0c2cf5e |
| vulnerabilities |
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
Description
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
|
The monthly-report script now looks for reports in identifiers modified in the given month. A new ++reports option has been added to choose whether to skip getting the reports (only returning the vulnerability counts), get the last report in the selected month or get a list of all reports in the selected month. For this the argument parsing and help/usage text are changed to use argparse. This addresses the problem that the shown report ids could previously be outside the selected date range.
Co-authored-by: Björn Ricks <[email protected]>
be2ea1f to
5ef4752
Compare
What
The result fetching in the monthly-report script is adjusted in the following ways:
Also, The monthly-report script now looks for reports in identifiers modified in the given month.
A new ++reports option has been added to choose whether to skip getting the reports (only returning the vulnerability counts), get the last report in the selected month or get a list of all reports in the selected month.
For this the argument parsing and help/usage text are changed to use argparse.
Why
Overall, this should make the script behave more as expected. The new result counts by distinct VT should be more informative than the previous number that could be influenced by how many times a host was scanned.
The report id change addresses the problem that the shown report ids could previously be outside the selected date range.
References
GEA-1215