A meta-code checker written in Python.
Project description
Betterscan: The Open DevSecOps Orchestration Toolchain
Betterscan (Self hosted and SaaS platform with CLI and Web based interface) used checkmate5 to orchestrate, unify and de-duplicate SAST and scanning tools.
Checkmate5
Python-based meta static-analysis runner that orchestrates multiple language analyzers (Bandit, tfsec, Brakeman, Kubescape, OpenGrep, Staticcheck, etc.) and stores findings in a database backend.
Table of Contents
- Fork notice & acknowledgements
- About
- Licenses
- Requirements
- Tools used
- CLI usage
- Backend configuration
Fork notice & acknowledgements
This project is a modified version of the original Checkmate.
- Original project: https://github.com/quantifiedcode/checkmate
About
Checkmate5 is a cross-language (meta-)tool for static code analysis, written in Python. It orchestrates multiple scanners, normalizes findings into a single view, and de-duplicates overlapping results. This provides a global overview of code quality and security findings across a project—aiming to present clear, actionable insights.
Snapshots let you view findings at a specific point in time, while the issues view can also show the full history of findings across all scans for a project.
Licenses
- The original Checkmate project is licensed under the MIT license: https://opensource.org/licenses/MIT
- Original Checkmate parts remain released under the MIT License.
- This fork’s modifications are released under the AGPL-3.0 license (previously LGPL 2.1 with Commons Clause). See
LICENSEfor details.
Requirements
- Python 3.8+
- Python dependencies (typical):
blitzdb5,pyyaml,sqlalchemy,requests - OpenGrep CLI (local binary) for OpenGrep-based analyzers
Tools used
Checkmate5 orchestrates external tools. Availability, licensing, and usage terms are governed by each upstream project.
- OpenGrep
- Bandit
- Brakeman
- tfsec
- Kubescape
- Staticcheck
OpenGrep setup
Checkmate5 uses the local OpenGrep CLI for opengrep (generic).
Install OpenGrep (recommended):
curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash
The CLI is expected at ~/.opengrep/cli/latest/opengrep or via OPENGREP_BIN.
It will be instaled when missing.
Rules
Rules are downloaded automatically from:
- https://github.com/opengrep/opengrep-rules
- https://github.com/AikidoSec/opengrep-rules
- https://github.com/amplify-security/opengrep-rules
If rules download fails, OpenGrep falls back to built-in packs.
Config overrides
CHECKMATE_OPENGREP_CONFIG
Debugging tool output
Run:
checkmate analyze --debug-tools
This prints the OpenGrep command, config paths, and raw JSON results.
Issues output formats
Generate reports from the latest snapshot:
checkmate issues --html-output
checkmate issues --json-output
checkmate issues --sarif-output
Legacy aliases still work:
checkmate issues html
checkmate issues json
checkmate issues sarif
CLI usage
Common flows:
checkmate init
checkmate analyze
checkmate issues
If you use the git plugin:
checkmate git init
checkmate analyze
checkmate issues
List snapshots and filter issues to a specific snapshot:
checkmate snapshots
checkmate issues --snapshot <snapshot_id_or_prefix>
checkmate init examples
Default (SQLite in .checkmate/database.db):
checkmate init
PostgreSQL:
checkmate init --backend sql --connection-string "postgresql+psycopg2://user:password@localhost:5432/checkmate"
MySQL:
checkmate init --backend sql --connection-string "mysql+pymysql://user:password@localhost:3306/checkmate"
Custom SQLite path:
checkmate init --backend sqlite --connection-string "sqlite:////absolute/path/to/my-checkmate.db"
Backend configuration
Projects are configured in .checkmate/config.json. A typical sqlite setup looks like:
{
"project_id": "YOUR_PROJECT_ID",
"project_class": "Project",
"backend": {
"driver": "sqlite",
"connection_string": "sqlite:////absolute/path/to/.checkmate/database.db"
}
}
PostgreSQL example:
{
"project_id": "YOUR_PROJECT_ID",
"project_class": "Project",
"backend": {
"driver": "sql",
"connection_string": "postgresql+psycopg2://user:password@localhost:5432/checkmate"
}
}
MySQL example:
{
"project_id": "YOUR_PROJECT_ID",
"project_class": "Project",
"backend": {
"driver": "sql",
"connection_string": "mysql+pymysql://user:password@localhost:3306/checkmate"
}
}
Notes:
- For PostgreSQL, install
psycopg2(orpsycopg). - For MySQL, install
pymysql. - For SQLite, the file will be created if it does not exist.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file checkmate5-1.3.1.tar.gz.
File metadata
- Download URL: checkmate5-1.3.1.tar.gz
- Upload date:
- Size: 698.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca12b9fdcec98f117a9698ba1f0766f94f81896d3cfc31b05c20c9ae9f22309c
|
|
| MD5 |
efc90f4fa293e7dfc0268ae44d12e9b5
|
|
| BLAKE2b-256 |
f5232c5521af70a4da2eee2f362cb8b1a2a160c53871923af22c7d3bfbdcd008
|
File details
Details for the file checkmate5-1.3.1-py3-none-any.whl.
File metadata
- Download URL: checkmate5-1.3.1-py3-none-any.whl
- Upload date:
- Size: 184.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4a05c2424ff1895c6e6d6e7245f1df9be266d0e9fc2b08d56b78fc6faecfcf
|
|
| MD5 |
fbf6c17c0b94a50f28e039a43a0a97bb
|
|
| BLAKE2b-256 |
b4efa8099a8f68a99fe210fd4c9e28347b66051873c06f5663d0f68e12264588
|