Skip to content

Add support for gosec config file

Ethan Reesor requested to merge ethan.reesor/contrib/gosec:feature/config into master

What does this MR do?

With this change, if SAST_GOSEC_CONFIG points to a file, that file will be passed to gosec with the -conf flag. This will allow CI users to easily configure SAST for Go projects.

I have enabled SAST for some of my projects, and I am getting spurious G104 issues for APIs that are known to never return errors. Gosec supports suppressing these errors categorically via configuration, so this change adds the ability to pass configuration to Gosec.

What are the relevant issue numbers?

Given that this is a simple change, I created this MR instead of an issue.

Does this MR meet the acceptance criteria?

Edited by Daniel Paul Searles

Merge request reports

Loading