Blazing-fast, zero-bloat, cross-platform Rust CLI for multi-ecosystem dependency, license & vulnerability scanning.
Preview β’ Why Sentinel β’ Ecosystems β’ Installation β’ Usage β’ Configuration β’ CI/CD
- Instant & Lightweight: Single native Rust binary with zero runtime dependencies, HTTP Keep-Alive pooling (
rustls), bounded 16-worker concurrency, and an atomic 15-minute local cache (~0.01sβ0.20son cached runs). - Direct & Transitive Security: Parses 12 lockfile formats natively (no external CLIs or
node_modulesrequired) and queries Google OSV in batches forCVE,GHSA,RUSTSEC,GO, andPYSECadvisories. - License Visibility: Displays package licenses (
MIT,Apache-2.0,ISC, etc.) and highlights copyleft licenses (GPL/AGPL). - CI/CD Ready: Built-in
--json, SARIF 2.1.0 (--sariffor GitHub Security), and quality-gate flags (--fail-on-cve,--fail-on-major). - True Cross-Platform: Runs natively on Windows (with automatic UTF-8 console support), Linux, and macOS.
| Ecosystem | Manifest / Detection | Lockfile (Transitive OSV) | License | OSV Advisories |
|---|---|---|---|---|
π© JS / TS (npm, pnpm, yarn, bun) |
package.json |
package-lock.json, pnpm-lock.yaml, yarn.lock |
β | β |
| πΉ Go | go.mod |
go.sum |
β | β |
π¦ Rust (cargo) |
Cargo.toml |
Cargo.lock |
β | β |
π Python (uv, pip) |
pyproject.toml, requirements.txt |
uv.lock, poetry.lock |
β | β |
π PHP (composer) |
composer.json |
composer.lock |
β | β |
π£ .NET (dotnet) |
*.csproj, *.fsproj |
packages.lock.json |
β | β |
β Java / Kotlin (maven, gradle) |
pom.xml, build.gradle(.kts) |
β | β | β |
π Ruby (bundler) |
Gemfile |
Gemfile.lock |
β | β |
π¦ Dart / Flutter (pub) |
pubspec.yaml |
pubspec.lock |
β | β |
β‘ Elixir (hex) |
mix.exs |
mix.lock |
β | β |
π Swift / iOS (swiftpm) |
Package.resolved |
β | β | β |
| π§± Terraform | .terraform.lock.hcl |
β | β | β |
| π³ Docker | Dockerfile, docker-compose.yml |
β | β | β |
| π GitHub Actions | .github/workflows/*.yml |
β | β | β |
The crate is published as sentinel-scan; the installed binary is sentinel:
cargo install sentinel-scanRequires Rust (Edition 2024):
cargo install --path . --forceDownload the latest static release binaries and checksums.txt from the Releases page:
| OS | Architectures | Assets |
|---|---|---|
Linux (static musl) |
amd64, arm64, 386 (32-bit), armv7 |
sentinel-linux-{amd64,arm64,386,armv7}.tar.gz |
Windows (msvc) |
amd64, arm64, 386 (32-bit) |
sentinel-windows-{amd64,arm64,386}.zip |
| macOS | arm64 (Apple Silicon), amd64 (Intel) |
sentinel-macos-{arm64,amd64}.tar.gz |
Run Sentinel directly from the official minimal container image without installing Rust:
# Linux / macOS
docker run --rm -v "$PWD:/workspace" ghcr.io/sebastianjnuwu/sentinel:latest /workspace
# Windows (PowerShell)
docker run --rm -v "${PWD}:/workspace" ghcr.io/sebastianjnuwu/sentinel:latest /workspace# Scan the current directory (recursively up to 3 levels deep)
sentinel
# Scan a specific workspace
sentinel /path/to/workspace
# Force fresh registry & OSV queries (bypass 15-min cache)
sentinel --no-cache
# Output machine-readable JSON
sentinel --json /path/to/workspace
# Output SARIF 2.1.0 for GitHub Code Scanning
sentinel --sarif /path/to/workspace > sentinel.sarif| Flag | Description |
|---|---|
--json |
Output structured JSON to stdout |
--sarif |
Output SARIF 2.1.0 for GitHub Security tab |
--fail-on-cve |
Exit with code 1 if any CVE/GHSA advisory is found |
--fail-on-major |
Exit with code 1 if any MAJOR update is found |
--depth <N> |
Maximum recursive directory depth (default: 3) |
--no-cache |
Bypass the 15-minute local registry & OSV cache |
-u, --update |
Download and install the latest Sentinel release |
-V, --version |
Print version |
-h, --help |
Print help |
| Variable | Description |
|---|---|
GITHUB_TOKEN |
Optional token for higher GitHub API rate limits when scanning .github/workflows/*.yml and Package.resolved. |
Create an optional sentinel.toml in your project or workspace root:
ignore_packages = ["legacy-pkg", "ureq"]
ignore_dirs = ["examples", "fixtures"]
deny_licenses = ["GPL", "AGPL"]
check_updates = true # set to false to disable background update checkUse Sentinel as a fast security gate in GitHub Actions and upload findings directly to GitHub Security β Code Scanning:
- name: Run Sentinel Security Scan
run: sentinel --sarif --fail-on-cve . > sentinel.sarif
- name: Upload SARIF to GitHub Security
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: sentinel.sarifEvery Rust source file strictly enforces a <= 70 lines modular limit (see AGENTS.md):
src/
βββ main.rs # CLI entry point & parallel orchestration
βββ cli.rs # Argument & flag parser
βββ config.rs # sentinel.toml loader
βββ cache.rs # Atomic 15-minute local disk cache
βββ http.rs # Shared ureq Keep-Alive HTTP agent (rustls)
βββ pool.rs # Bounded 16-worker thread pool
βββ discover.rs # Recursive project discovery
βββ osv.rs # Google OSV batch vulnerability client
βββ collectors/ # 14 per-ecosystem collectors
βββ lockfiles/ # 12 native lockfile parsers (transitive OSV)
βββ output/ # Compact Unicode table, icons & SARIF 2.1.0
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
cargo build --releaseLicensed under the Apache License, Version 2.0 β see LICENSE for details.