PolGate
is a tool for security policies and exception management. Polgate helps you to enable effective gatekeeping when integrated in the CI/CD pipeline.
Ensure $(go env GOPATH)/bin is in your $PATH
go install github.com/boringtools/polgate@main
For more tools, Please create a issue.
Fail workflow when SemGrep results in error
(high) severity findings.
polgate eval --input /input/file/path/results.json --policy semgrep_fail_error
Add exceptions or false positives to continue the workflow.
polgate eval --input /input/file/path/results.json --policy semgrep_fail_error --exceptions exceptions,seprated,by,comma
Apply list of supported policies form a JSON file
polgate eval --input /input/file/path/results.json --policy-file /policy/file/path/policies.json
Apply list of exceptions form a JSON file
polgate eval --input /input/file/path/results.json --policy semgrep_fail_error --exception-file /exceptions/file/path/exceptions.json
- semgrep_pass_all
- semgrep_fail_error
- semgrep_fail_error_warning
- semgrep_fail_all
For more policies, Please create a issue.
{
"policies": [
"semgrep_fail_all"
]
}
{
"exceptions": [
"sample-fingerprint",
]
}