haku-blue/LokiRed

Scan AI-agent and MCP configuration risk, diff pull-request permission changes, or enforce policy.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 26, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: haku-blue/lokired@520f9dd434edf1cf192832d060ed44893e959171 # v0.2.2

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

namedescriptionrequireddefault
modeAction mode: scan, diff, or policy-check. scan preserves the original scan-only behavior.noscan
scan-pathDirectory or Git repository to scan. Used as --repo for diff and policy-check modes.no.
base-refBase Git ref for diff and policy-check modes. Defaults to origin/${GITHUB_BASE_REF} on pull_request events.no""
head-refHead Git ref for diff and policy-check modes.noHEAD
policy-pathOptional path to a LokiRed policy file for scan mode, such as .lokired/policy.yml.no""
baseline-pathOptional path to a LokiRed baseline JSON file for scan mode.no""
output-formatOutput format for the primary CLI output. scan supports text, json, or sarif; diff and policy-check support text, json, or markdown.notext
output-fileOptional file path where the primary scan-mode output should be written.no""
fail-onLowest severity that fails the action. Use none to report only.nohigh
write-baselineOptional path where LokiRed should write a baseline JSON file.no""
markdown-summary-pathOptional path for the Markdown pull-request summary produced by diff and policy-check modes.nolokired-summary.md
json-report-pathOptional path for a JSON report file. Upload it separately if the workflow should retain it as an artifact.no""
append-step-summaryWhether diff and policy-check modes append the Markdown summary to GITHUB_STEP_SUMMARY.notrue
namedescription
exit-codeOriginal LokiRed CLI exit code returned by the selected mode.
modeAction mode that was executed.
markdown-summary-pathMarkdown summary path written by diff or policy-check mode.
json-report-pathJSON report path written when json-report-path is set.
blockedtrue when policy-check mode returned exit code 1.