kics-github-action icon indicating copy to clipboard operation
kics-github-action copied to clipboard

Feature Request: ability to control verbosity for some severity types

Open nhecker opened this issue 4 months ago • 0 comments

Hello,

I would like to be able to exclude certain severities from being verbosely listed under the Query Results table, while still being counted in the table which tallies the number of results found for each severity (the Category | Results table.) Unless I am overlooking some combination of configuration, currently this is not possible. To elaborate, with:

with:
  enable_comments: true
  comments_with_queries: true
  exclude_severities: 'info,low'

we are able to omit findings with severity of either info or low from showing in the detailed Queries Results table, and from being counted in the query Category | Results table. I.e., info and low severity queries are completely excluded, as we've asked them to be; that much works as designed.

But I'd like to have a bit more granular control. While I don't need every info and low query to be enumerated under Queries Results, I would like to still be able to display the count for these severities in the Results column of the Category | Results table. Can we perhaps introduce a new input, e.g., count_severities which would provide for this functionality while not breaking existing behaviors when this input isn't specified?

I'm not immediately familiar with this project's codebase, but I'd be happy to contribute a PR towards this if there's interest from the maintainers.

Thanks for considering! Nick

nhecker avatar Oct 08 '25 11:10 nhecker