Skip to main content

Policies, output, and trust provenance

plugin-scanner separates quality scoring from trust provenance so maintainers can see both readiness and evidence.

Policy profilesDirect link to Policy profiles​

Pick a profile with --profile, profile = "..." in the config file, or the action's profile input. An unknown profile name falls back to default.

ProfileHighest severity allowedMinimum score for submitExtra required checks
defaultcritical60secret, dangerous MCP command, and plugin manifest rules must run
public-marketplacemedium60valid plugin manifest, marketplace entries, and skill frontmatter; LICENSE and SECURITY.md present
strict-securitylow80no hardcoded secrets or dangerous MCP commands, HTTPS remotes, pinned GitHub Actions, no write-all permissions, no untrusted checkout, dependency lockfile present

A profile fails when any finding is more severe than its allowed level or one of its required checks fails. The profile minimum score is applied by submit. For scan, set the gate yourself with --min-score, or min_score in the action.

Config and baselinesDirect link to Config and baselines​

The scanner reads .plugin-scanner.toml or .codex-plugin-scanner.toml from the scanned directory, or the file you pass with --config. The CLI trusts repository config and baseline files by default. The GitHub Action ignores them unless you set trust_repository_policy: true.

[scanner]
profile = "public-marketplace"
baseline_file = "baseline.txt"
ignore_paths = ["tests/*", "fixtures/*"]

[rules]
disabled = ["README_MISSING"]
severity_overrides = { CODEXIGNORE_MISSING = "low" }

The config file supports three sections:

  • [scanner] with profile, baseline_file, and ignore_paths
  • [rules] with enabled, disabled, and severity_overrides
  • [github] with pr_comment, pr_comment_style, and pr_comment_max_findings

A baseline file suppresses findings by rule id. It is either a JSON array of rule ids or a plain text file with one rule id per line. Pass it with --baseline or baseline_file. Relative paths resolve against the scanned directory.

Output formatsDirect link to Output formats​

FormatUse
textlocal terminal review
jsonCI and downstream automation
markdownreviewer-facing summaries
sarifGitHub code scanning

scan supports all four. lint and verify support text and json. submit writes a JSON artifact and has no format flag.

plugin-scanner scan . --format text
plugin-scanner scan . --format json
plugin-scanner scan . --format markdown
plugin-scanner scan . --format sarif --output plugin-scanner.sarif

Fail CI on a severity threshold:

plugin-scanner scan . --fail-on-severity high

Scores and gradesDirect link to Scores and grades​

The score runs from 0 to 100. Grade bands:

GradeScoreLabel
A90 and aboveExcellent
B80 to 89Good
C70 to 79Acceptable
D60 to 69Needs Improvement
Fbelow 60Failing

JSON report fieldsDirect link to JSON report fields​

scan --format json returns a document with schema_version: "scan-result.v1". The fields most pipelines read:

  • score, raw_score, effective_score, and grade
  • profile and policy_pass
  • verify_pass, which is always true in scan output because scan does not run verification; use verify or submit for that gate
  • summary.gradeLabel and summary.findings, the finding count per severity
  • categories[] with per-check points, and findings[] with ruleId, severity, title, remediation, filePath, and lineNumber
  • trust, the trust provenance report described below
  • ecosystems and packages[] for the detected packages
  • skippedTargets[] for remote marketplace entries in repository mode

The GitHub Action exposes a different set of step outputs (score, grade, grade_label, policy_pass, verify_pass, max_severity, findings_total, and others). See GitHub Action quality gate.

Trust provenanceDirect link to Trust provenance​

The scanner emits explicit trust provenance alongside quality grades:

  • bundled skills use the published HCS-28 baseline adapter ids, weights, and denominator rules
  • MCP configuration trust uses a local draft with the same adapter and contribution-mode pattern
  • top-level plugin trust follows the same pattern locally

Start with the trust guide:

Container usageDirect link to Container usage​

Container-first environments can use the published image. It runs plugin-scanner as its entrypoint, as a non-root user, with /workspace as the working directory:

docker run --rm \
-v "$PWD:/workspace" \
ghcr.io/hashgraph-online/hol-guard:<version> \
scan /workspace --format text

Replace <version> with a released tag. The image comes from the same repository as the hol-guard package.

Next guidesDirect link to Next guides​