guard0-ai/g0 AI Agent Security Scan

Scan AI agent code for security risks, gate on thresholds, post a PR comment, upload SARIF, and write a job summary.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathPath to scan.
min-scoreMinimum overall security score (0-100). Ignored when `baseline` is set (regression mode).70
min-gradeMinimum grade (A, B, C, D). Ignored when `baseline` is set (regression mode).no""
fail-onFail on severity level: "critical" (fail on any critical finding) or "high" (fail on any high or critical finding).high
rulesetRule set to run: recommended, extended, or allno""
configPath to a g0 config file (default: auto-detect .g0.yaml)no""
baselinePath to a committed baseline file (from `g0 gate --write-baseline`). When set, absolute score/grade gates are skipped and only findings new vs. the baseline are evaluated (regression mode).no""
compare-to-baseOn pull_request events, scan the PR base branch in a temporary git worktree and report the score delta + new findings vs. base. Requires the checkout step to use `fetch-depth: 0`.true
sarifWrite a SARIF report of findingstrue
upload-sarifUpload the SARIF report to GitHub Code Scanning (requires the `security-events: write` permission; unavailable on forked-repo PRs)true
pr-commentPost (and keep updated) a sticky PR comment with the scan reporttrue
comment-mode"update" finds and edits the existing g0 comment on the PR, or creates one if none exists. Any other value always creates a new comment.update
signup-ctaInclude a one-line guard0.ai signup link at the bottom of the PR comment / job summarytrue
github-tokenToken used for the PR comment and SARIF upload${{ github.token }}
namedescription
scoreOverall security score (0-100)
gradeLetter grade (A-F)
passed"true" or "false" — whether the gate passed
criticalCount of critical findings
highCount of high findings
mediumCount of medium findings
lowCount of low findings
new-findingsCount of findings new vs. base/baseline (empty if neither `compare-to-base` nor `baseline` applied)
sarif-filePath to the generated SARIF file (empty if `sarif: false`)