kubescape / kubevuln

Kubevuln is an in-cluster component of the Kubescape security platform. It scans container images for vulnerabilities, using Grype as its engine.
Apache License 2.0
17 stars 19 forks source link

Init NormalizeByCVE to true #189

Closed dwertent closed 6 months ago

dwertent commented 7 months ago

type:

enhancement


description:

This PR introduces a change in the GrypeAdapter's vulnerability matcher configuration. Specifically, it sets the 'NormalizeByCVE' attribute to true. This change will ensure that the vulnerabilities are normalized by their CVE identifiers, providing a more standardized and consistent output.


main_files_walkthrough:

files: - `adapters/v1/grype.go`: The 'NormalizeByCVE' attribute of the 'VulnerabilityMatcher' in the 'ScanSBOM' function is now set to true.

User Description:

Overview

image (3)

cc @slashben

codiumai-pr-agent[bot] commented 7 months ago

PR Description updated to latest commit (https://github.com/kubescape/kubevuln/commit/48a5a23a147ecfee366a0a4865a3ef133d7d65df)

codiumai-pr-agent[bot] commented 7 months ago

PR Analysis

How to use

Instructions > To invoke the PR-Agent, add a comment using one of the following commands: > **/review**: Request a review of your Pull Request. > **/describe**: Update the PR title and description based on the contents of the PR. > **/improve [--extended]**: Suggest code improvements. Extended mode provides a higher quality feedback. > **/ask \**: Ask a question about the PR. > **/update_changelog**: Update the changelog based on the PR's contents. > **/add_docs**: Generate docstring for new components introduced in the PR. > **/generate_labels**: Generate labels for the PR based on the PR's contents. > see the [tools guide](https://github.com/Codium-ai/pr-agent/blob/main/docs/TOOLS_GUIDE.md) for more details. >To edit any configuration parameter from the [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml), add --config_path=new_value. >For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." >To list the possible configuration parameters, add a **/config** comment.
github-actions[bot] commented 7 months ago

Summary:

dwertent commented 6 months ago

I included this code in #196