Skip to content

Conversation

@Shivam-nagar23
Copy link
Member

Description

Fixes #

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


// Handling for future use
func (d Severity) ValuesOf(severity string) Severity {
if severity == "critical" {
if severity == "critical" || severity == "high" {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should make these values as constants


const (
Low Severity = iota
Moderate
Copy link
Member

Choose a reason for hiding this comment

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

image scanner has devtron severity medium not moderate. align this with it.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Shivam-nagar23 Shivam-nagar23 merged commit 67fa294 into main Jun 7, 2023
@Shivam-nagar23 Shivam-nagar23 deleted the minor-trivy-fix branch June 7, 2023 13:16
adi6859 pushed a commit that referenced this pull request Jun 16, 2023
* review changes and main sync script

* Severity high and safe handling

* sql script change

* script fix

* review changes

* review changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants