hacks4snacks/Threat Model Forge

Analyze .tm7 threat models, upload SARIF to code scanning, and gate the build on findings.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
modelsGlob of threat-model files to analyze, relative to the repository root.no**/*.tm7
imageContainer image that provides the tmforge CLI.noghcr.io/hacks4snacks/tmforge-cli
versionTag (or digest) of the tmforge image to run, e.g. '0.3', '0.3.1', or 'sha256:...'. Pin this to a released version for reproducible gates rather than relying on the floating default.nolatest
max-severitySeverity at or above which findings fail the gate. One of 'error' or 'warning'. Leave empty to use the CLI default (error), so only errors gate unless you opt into warnings.no""
fail-on-findingsFail the action when analysis reports gating findings (exit code 2). Set to 'false' to report without failing.notrue
upload-sarifUpload the SARIF results to GitHub code scanning.notrue
categoryCode-scanning category for the uploaded SARIF, so multiple analyses can coexist.nothreat-model-forge
sarif-directoryDirectory (relative to the workspace) the per-model SARIF files are written to.no.tmforge-sarif
namedescription
result'pass' (no gating findings), 'fail' (gating findings), or 'error' (a model could not be analyzed).
exit-codeThe worst tmforge analyze category across all models: 0 (clean), 2 (findings), or 1 (error).
sarif-directoryDirectory the SARIF files were written to.