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.
| Profile | Highest severity allowed | Minimum score for submit | Extra required checks |
|---|---|---|---|
default | critical | 60 | secret, dangerous MCP command, and plugin manifest rules must run |
public-marketplace | medium | 60 | valid plugin manifest, marketplace entries, and skill frontmatter; LICENSE and SECURITY.md present |
strict-security | low | 80 | no 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]withprofile,baseline_file, andignore_paths[rules]withenabled,disabled, andseverity_overrides[github]withpr_comment,pr_comment_style, andpr_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
| Format | Use |
|---|---|
text | local terminal review |
json | CI and downstream automation |
markdown | reviewer-facing summaries |
sarif | GitHub 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:
| Grade | Score | Label |
|---|---|---|
| A | 90 and above | Excellent |
| B | 80 to 89 | Good |
| C | 70 to 79 | Acceptable |
| D | 60 to 69 | Needs Improvement |
| F | below 60 | Failing |
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, andgradeprofileandpolicy_passverify_pass, which is alwaystrueinscanoutput becausescandoes not run verification; useverifyorsubmitfor that gatesummary.gradeLabelandsummary.findings, the finding count per severitycategories[]with per-check points, andfindings[]withruleId,severity,title,remediation,filePath, andlineNumbertrust, the trust provenance report described belowecosystemsandpackages[]for the detected packagesskippedTargets[]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.