Skip to content

Releases

Sentinel v1.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 01:46
c7b8cd7

πŸ›‘οΈ Sentinel v1.0.1

Major security, accuracy, performance, and binary-size release resolving 34 audit issues (#5–#32, #38, #39, #41–#44), adding self-update (-u / --update), and expanding Google OSV vulnerability coverage to GitHub Actions, Swift (SwiftURL), and Docker Hub images (via OCI SBOM attestations).


πŸ“¦ Installation & Upgrading

1. Self-Update (from v1.0.1+)

sentinel -u
# or
sentinel --update

Automatically resolves the latest GitHub Release, prompts for confirmation, verifies the SHA-256 digest against checksums.txt, and atomically replaces the installed binary.

2. From crates.io (sentinel-scan)

cargo install sentinel-scan --force

3. From Source

git clone https://github.com/sebastianjnuwu/sentinel.git
cd sentinel
cargo install --path . --force

4. Docker / GitHub Container Registry (FROM scratch)

# Linux / macOS
docker run --rm -v "$PWD:/workspace" ghcr.io/sebastianjnuwu/sentinel:v1.0.1 /workspace

# Windows (PowerShell)
docker run --rm -v "${PWD}:/workspace" ghcr.io/sebastianjnuwu/sentinel:v1.0.1 /workspace

5. Pre-built Static Binaries

Download the archive for your OS/architecture below and verify against checksums.txt:

  • Linux (musl static): sentinel-linux-{amd64,arm64,386,armv7}.tar.gz
  • Windows (msvc): sentinel-windows-{amd64,arm64,386}.zip
  • macOS: sentinel-macos-{arm64,amd64}.tar.gz

πŸ”„ Migration Guide (v1.0.0 β†’ v1.0.1)

  1. Strict CLI Flag & Path Validation (#18, #24):
    • Unknown CLI flags (e.g. typos like --fail-on-cves), invalid --depth values, and non-existent or non-directory paths now fail immediately with exit code 2 instead of silently succeeding.
  2. Up-to-Date Dependencies & deny_licenses Gate (#26, #42):
    • Dependencies already at their latest version are now checked against Google OSV and deny_licenses. Previously missed vulnerabilities or denied licenses on up-to-date packages will now trigger --fail-on-cve / deny_licenses.
    • Token-based SPDX matching (#11) ensures deny_licenses = ["GPL"] matches GPL-* without false positives on LGPL or AGPL.
  3. OSV Network Reliability (#8, #43):
    • OSV lookup failures or truncated batch responses now emit an error to stderr and exit with code 1 (never caching a false clean result).
  4. sentinel.toml Update Check Option:
    • Non-blocking background update notifications are enabled by default in interactive terminal runs (--json and --sarif are unaffected). To disable:
      check_updates = false

⚑ Performance & Binary Size Improvements

  • 71% Smaller Binary: Added [profile.release] (opt-level = "z", lto = "fat", codegen-units = 1, panic = "abort", strip = true), shrinking the release binary from 5.78 MB to 1.66 MB (~920 KB zipped) and GZIP=-9 release tarballs.
  • ~6.6Γ— Faster Warm Scans: Replaced uncached go list -m -u subprocess calls with a native go.mod parser + cached proxy.golang.org lookups, and unified workspace-wide OSV queries into a single deduplicated batch.

✨ What's Changed

Added

  • Self-Updater (-u, --update) with interactive [y/N] confirmation, checksums.txt SHA-256 verification, and background update notice (check_updates in sentinel.toml) (#41).
  • GitHub Actions OSV Scanning (versions and ECOSYSTEM/SEMVER range matching + /tags fallback) (#5, #12).
  • Swift / iOS OSV Scanning (SwiftURL) and Package.resolved v1 + v2 support (#27).
  • Docker Hub OSV Scanning via pure-HTTP OCI v2 SPDX SBOM attestations + PURL OSV batching, docker.io/ normalization, sha256 digest support, and explicit warnings (#14).
  • Lockfile & Manifest Parsers: go.sum + go.mod replace (#21, #32, #44), package-lock.json v1 (#23), Yarn Berry v2+ (#17), Cargo.toml table & target sections (#31), Maven ${properties} / <dependencyManagement> / parent POMs (#29), Gradle Groovy map notation + libs.versions.toml (#30), and lockfile-only project discovery (#16).
  • Library Target (src/lib.rs) for docs.rs builds (#38) and 10 modular integration test suites under tests/ (33/33 tests).

Fixed

  • Removed 2-CVE truncation per package across direct and transitive results (#6).
  • Chunked direct OSV queries in batches of 500 (#9) and validated response lengths (#43).
  • Replaced host-environment Python pip list scanning with project manifest (requirements.txt / pyproject.toml) + PyPI lookups (#7).
  • Applied ignore_packages to transitive lockfile vulnerabilities (#25) and supported multi-line/single-quoted sentinel.toml arrays (#22).
  • Isolated lockfiles to each project directory (#19), filtered git/path sources from Cargo.lock/uv.lock (#28), fixed resolve_ver fallback (#10), and adopted the bounded 16-worker pool across all HTTP collectors (#13).
  • Respected NO_COLOR / non-TTY output (#20), stripped control characters, emitted SARIF driver.rules and root-relative URIs (#15), and removed redundant package.homepage (#39).

Sentinel v1.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:33

πŸ›‘οΈ Sentinel v1.0.0

Blazing-fast, zero-bloat, cross-platform Rust CLI for multi-ecosystem dependency, license & Google OSV vulnerability scanning across 14 ecosystems and 12 native lockfile formats.


πŸ“¦ Download & Quick Install

🐧 Linux (Static musl β€” runs on any distro, Alpine, or container)

# Linux x86_64 / AMD64
curl -fsSL https://github.com/sebastianjnuwu/sentinel/releases/download/v1.0.0/sentinel-linux-amd64.tar.gz | tar -xz
sudo mv sentinel /usr/local/bin/

# Linux ARM64 (AWS Graviton, Raspberry Pi 64-bit, Apple Silicon VMs)
curl -fsSL https://github.com/sebastianjnuwu/sentinel/releases/download/v1.0.0/sentinel-linux-arm64.tar.gz | tar -xz
sudo mv sentinel /usr/local/bin/

# Linux x86 32-bit (i686)
curl -fsSL https://github.com/sebastianjnuwu/sentinel/releases/download/v1.0.0/sentinel-linux-386.tar.gz | tar -xz
sudo mv sentinel /usr/local/bin/

# Linux ARMv7 32-bit
curl -fsSL https://github.com/sebastianjnuwu/sentinel/releases/download/v1.0.0/sentinel-linux-armv7.tar.gz | tar -xz
sudo mv sentinel /usr/local/bin/

🍎 macOS (Apple Silicon & Intel)

# macOS Apple Silicon (M1 / M2 / M3 / M4 - ARM64)
curl -fsSL https://github.com/sebastianjnuwu/sentinel/releases/download/v1.0.0/sentinel-macos-arm64.tar.gz | tar -xz
sudo mv sentinel /usr/local/bin/

# macOS Intel (x86_64 / AMD64)
curl -fsSL https://github.com/sebastianjnuwu/sentinel/releases/download/v1.0.0/sentinel-macos-amd64.tar.gz | tar -xz
sudo mv sentinel /usr/local/bin/

πŸͺŸ Windows (PowerShell β€” AMD64, ARM64 & 32-bit)

# Windows x86_64 / AMD64 (Installs globally to PATH & removes temporary .zip)
$dir = "$env:LOCALAPPDATA\Programs\sentinel"; New-Item -ItemType Directory -Force -Path $dir | Out-Null
Invoke-WebRequest -Uri "https://github.com/sebastianjnuwu/sentinel/releases/download/v1.0.0/sentinel-windows-amd64.zip" -OutFile "$env:TEMP\sentinel.zip"
Expand-Archive -Path "$env:TEMP\sentinel.zip" -DestinationPath $dir -Force; Remove-Item "$env:TEMP\sentinel.zip" -Force
$p = [Environment]::GetEnvironmentVariable("Path", "User"); if ($p -notlike "*$dir*") { [Environment]::SetEnvironmentVariable("Path", "$p;$dir", "User"); $env:Path += ";$dir" }
sentinel --version

(Also available below: sentinel-windows-arm64.zip for Windows on ARM and sentinel-windows-386.zip for 32-bit Windows)

🐳 Docker / GitHub Container Registry (FROM scratch, Multi-Arch linux/amd64 & linux/arm64)

# Linux / macOS
docker run --rm -v "$PWD:/workspace" ghcr.io/sebastianjnuwu/sentinel:v1.0.0 /workspace

# Windows (PowerShell)
docker run --rm -v "${PWD}:/workspace" ghcr.io/sebastianjnuwu/sentinel:v1.0.0 /workspace

πŸš€ How to Use

# 1. Scan the current project or monorepo (recursively up to 3 levels deep)
sentinel

# 2. Scan a specific directory with custom recursion depth
sentinel /path/to/workspace --depth 5

# 3. Force fresh registry & Google OSV lookups (bypass 15-min local cache)
sentinel --no-cache

# 4. Export machine-readable JSON for scripts & pipelines
sentinel --json . > report.json

# 5. Export SARIF 2.1.0 for GitHub Security -> Code Scanning
sentinel --sarif . > sentinel.sarif

# 6. CI/CD Quality Gates (exit code 1 on vulnerabilities or major outdated packages)
sentinel --fail-on-cve .
sentinel --fail-on-major .

CLI Flags Reference

Flag Description
--json Output clean, structured JSON to stdout
--sarif Output SARIF 2.1.0 report for GitHub Code Scanning
--fail-on-cve Exit with code 1 if any direct or transitive vulnerability (CVE, GHSA, RUSTSEC, GO, PYSEC) is detected
--fail-on-major Exit with code 1 if any MAJOR dependency update is pending
--depth <N> Maximum directory recursion depth (default: 3)
--no-cache Bypass the 15-minute atomic local cache
-V, --version Print version (sentinel 1.0.0)
-h, --help Print help message

βš™οΈ Optional Configuration (sentinel.toml)

Place a sentinel.toml file in your workspace root to customize scanning rules:

ignore_packages = ["legacy-pkg"]
ignore_dirs = ["examples", "fixtures"]
deny_licenses = ["GPL", "AGPL"]

🌍 Supported Ecosystems (14) & Native Lockfiles (12)

  • 🟩 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 (including [workspace.dependencies]), Cargo.lock
  • 🐍 Python (uv, pip, poetry): 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, 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, docker-compose.yaml
  • πŸ™ GitHub Actions: .github/workflows/*.yml, .github/workflows/*.yaml

πŸ” Release Assets & Verification (checksums.txt)

Verify any downloaded archive against checksums.txt:

sha256sum -c checksums.txt --ignore-missing
Platform Architecture Rust Target Asset
🐧 Linux x86_64 / AMD64 x86_64-unknown-linux-musl sentinel-linux-amd64.tar.gz
🐧 Linux ARM64 aarch64-unknown-linux-musl sentinel-linux-arm64.tar.gz
🐧 Linux x86 / 32-bit i686-unknown-linux-musl sentinel-linux-386.tar.gz
🐧 Linux ARMv7 32-bit armv7-unknown-linux-musleabihf sentinel-linux-armv7.tar.gz
πŸͺŸ Windows x86_64 / AMD64 x86_64-pc-windows-msvc sentinel-windows-amd64.zip
πŸͺŸ Windows ARM64 aarch64-pc-windows-msvc sentinel-windows-arm64.zip
πŸͺŸ Windows x86 / 32-bit i686-pc-windows-msvc sentinel-windows-386.zip
🍎 macOS Apple Silicon ARM64 aarch64-apple-darwin sentinel-macos-arm64.tar.gz
🍎 macOS Intel x86_64 x86_64-apple-darwin sentinel-macos-amd64.tar.gz