narendra486/QualityGate - Universal SARIF Security Quality Gate

Universal SARIF security quality gate for CodeQL, Snyk, Trivy, Semgrep, Checkov, Grype, and more.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 8, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: narendra486/qualitygate@767a41b1ee74c55fbd13cdcc5f3a356a5173b3ab # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
sarif_fileSARIF path input: single file, multiline file list, directory, or glob.yes
severity_thresholdOptional severity threshold. Defaults to high, which blocks high and critical findings. Set medium to also block medium findings.nohigh
modeEnforcement mode: block fails the workflow with exit 1; report posts results without failing.noblock
github_tokenGitHub token for PR comments and optional check runs.no
pr_commentOptional. Whether to post PR comments. Defaults to true; set false to disable comments.notrue
fail_on_countOptional: Fail if total findings exceed this numberno
ignore_rule_idsComma-separated list of rule IDs to ignoreno
ignore_pathsComma-separated glob patterns for paths to ignoreno
deduplicateOptional. Deduplicate findings before evaluation. Defaults to true; set false to count every occurrence.notrue
enable_annotationsWhether to create GitHub workflow annotations.notrue
enable_step_summaryWhether to write the GitHub Step Summary.notrue
markdown_templateOptional custom markdown template path using {{status}}, {{summary_table}}, {{findings_table}}, and related tokens.no
max_findings_displayMaximum findings displayed in PR comments and step summaries.no100
json_export_fileOptional path to write a JSON report artifact.no
namedescription
total_findingsTotal number of findings
critical_countNumber of critical findings
high_countNumber of high findings
medium_countNumber of medium findings
low_countNumber of low findings
quality_gate_statusPASS or FAIL
blockedtrue when the quality gate failed
processed_filesNewline-separated list of processed SARIF files