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 critical vulnerability counter #2712

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

madelondohmen
Copy link
Contributor

Changes

Fix for the vulnerability counter. As seen in the screenshot below, the critical vulnerability counter in the summary of the Aggregate Report was always 0.

This PR fixes this bug and updates the vulnerability report's unit test to verify that the critical_vulnerability variable is set correctly.

afbeelding

Issue link

Closes #2664


Code Checklist

  • All the commits in this PR are properly PGP-signed and verified.
  • This PR only contains functionality relevant to the issue; tickets have been created for newly discovered issues.
  • I have written unit tests for the changes or fixes I made.
  • For any non-trivial functionality, I have added integration and/or end-to-end tests.
  • I have performed a self-review of my code and refactored it to the best of my abilities.

Communication

  • I have informed others of any required .env changes files if required and changed the .env-dist accordingly.
  • I have made corresponding changes to the documentation, if necessary.
  • I have included comments in the code to elaborate on what is not self-evident from the code itself, including references to issues and discussions online, or implicit behavior of an interface.

Checklist for code reviewers:

Copy-paste the checklist from the docs/source/templates folder into your comment.


Checklist for QA:

Copy-paste the checklist from the docs/source/templates folder into your comment.

@madelondohmen madelondohmen added bug Something isn't working rocky Issues related to Rocky report labels Mar 25, 2024
@madelondohmen madelondohmen self-assigned this Mar 25, 2024
@madelondohmen madelondohmen marked this pull request as ready for review March 25, 2024 09:23
@madelondohmen madelondohmen requested a review from a team as a code owner March 25, 2024 09:23
@underdarknl underdarknl added this to the OpenKAT v1.15 milestone Mar 25, 2024
@underdarknl underdarknl merged commit 491f223 into main Mar 25, 2024
10 checks passed
@underdarknl underdarknl deleted the fix/fix-critical-vulnerability-count branch March 25, 2024 14:24
dekkers pushed a commit that referenced this pull request Apr 1, 2024
jpbruinsslot added a commit that referenced this pull request Apr 4, 2024
* main: (51 commits)
  Fix static files for container images/Debian packages when DEBUG is on (#2742)
  OOI selection at Aggregate report does not remember changed selection (#2619)
  fix schema errors on empty / missing schemas (#2744)
  Updated `phonenumbers` and `django-phonenumber-field` (#2757)
  Remove octopoes coverage workflow (#2755)
  Bump actions/configure-pages from 4 to 5 (#2745)
  Add xtdb-cli tool to Octopoes (#2733)
  Dont report vulnerabilities without version info of the software for snyk (#2730)
  Feature/boefjes to oci images (#2709)
  Query non-reference fields and subclass-specific fields through path queries (#2662)
  Fix in System Specific (#2732)
  Plugins overview in appendix not showing any plugins (#2694)
  Feat stepper design v2 (#2704)
  Undo project-directory in Rocky (#2734)
  Remove Docker Compose: "version" (#2718)
  Upgrade `pre-commit` hooks (#2729)
  Fix #1739 (#2705)
  Improve generate report (#2633)
  Fix critical vulnerability counter (#2712)
  Fix pdf alignment (#2674)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working report rocky Issues related to Rocky
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Counter of critical vulnerabilities in Aggregate Report
2 participants