Skip to content

Need to give a default severity value during import through API #11659

@sannki

Description

Problem description

While uploading a Gitleaks file during import under an engagement, we've found that all the findings are given a High severity.
We want to give a specify default value here, for ex. Low, Medium or Info during the import as for almost every findings it is showing High as default.

We also found a minimum_severity feature as part of the payload during payload, but it only ignores the findings with severity lower than the value we give.

To make changes for all the findings, we would've to make those number of request to the finding API endpoint.
We want to make such change over a single request if it can be done.

Is there any way we can give a default enum value for all the findings during the import so that all the findings under it show that exact value as severity?

Screenshot displaying high severity as default:

Image

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions