g2cv/CASM Auto-Diff

Run CASM unified scans, diff against a baseline SARIF, and publish evidence-first GitHub comments.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 19, 2026
License
AGPL 3.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: g2cv/casm@7fcae3d4e27ba9fe95b7a75d6351d3f885aa9dd8 # v0.3.2

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

namedescriptionrequireddefault
scope-pathPath to the CASM scope fileyes
targets-fileOptional JSON targets fileno""
run-out-dirDirectory where CASM run artifacts are writtennoruns/current
baseline-pathBaseline SARIF path used for diffingno.casm/baseline/results.sarif
casm-versionPackage spec passed to pip install (for example g2cv-casm or g2cv-casm==1.2.3)nog2cv-casm
python-versionPython runtime versionno3.11
dry-runWhether to run CASM in dry-run modenofalse
report-langCASM report language (en or fr)noen
formatsCASM output formats (comma-separated or all)nomarkdown,sarif
enable-dns-enumEnable DNS enumeration in unified scansnofalse
dns-wordlistOptional DNS wordlist pathno""
tool-filterTool suffix filter for SARIF diffnohttp_verify
post-modePublish mode (none, auto, issue, pr)noauto
pr-numberExplicit PR number for comment postingno""
issue-numberExplicit issue number for comment postingno""
issue-titleBaseline issue title when auto-creating issue commentsnoCASM Security Baseline
issue-labelsComma-separated labels used when creating baseline issueno""
max-findingsMax added/removed findings shown in report sectionsno20
post-on-no-changePublish report even when baseline diff has no added/removed findingsnofalse
github-tokenGitHub token override for API publishingno""
fail-on-publish-errorFail the action if the reporter cannot publish commentsnofalse
namedescription
has-baselineWhether a baseline SARIF was present before the run
has-changesWhether diff found added or removed findings
added-countAdded findings count
removed-countRemoved findings count
unchanged-countUnchanged findings count
publishedWhether a GitHub comment was published
target-kindPublish target kind (pr, issue, none)
target-numberPublish target number, when available
post-skipped-reasonReason publish was skipped, when applicable
sarif-pathSARIF output path
evidence-pathEvidence JSONL output path
report-pathMarkdown report output path
summary-pathAuto-diff markdown summary path
baseline-pathUpdated baseline SARIF path