Repository navigation
Releases
v0.3.0: GitHub Action, pre-commit, SARIF
Put VeriCode in CI and in front of every commit
GitHub Action. Fails the job on a hardcoded secret, a hallucinated package or a known CVE, and marks each finding on its line in the Security tab:
- id: vericode
uses: LucasYanzy/vericode@v0.3.0
- if: always()
uses: github/codeql-action/upload-sarif@v4
with: { sarif_file: "${{ steps.vericode.outputs.sarif-file }}" }pre-commit. id: vericode (secrets + dependency checks) or id: vericode-offline (secrets only).
SARIF 2.1.0. --sarif FILE works with GitHub code scanning, GitLab, Azure DevOps and any SARIF viewer. Validated against the OASIS schema; secret values are never written to it.
Also new
--no-checks: security checks only (no type-check or tests)- npm lookups are much lighter: established packages are settled with npm's downloads API instead of the full document (16 MB for
typescript) --no-cveno longer prints "No known vulnerabilities" for a check that didn't run- Website with a live "is this package real?" checker: https://lucasyanzy.github.io/vericode/
Full notes: CHANGELOG.md
🤖 Generated with Claude Code
v0.2.0: catch hallucinated dependencies
Catch hallucinated dependencies
AI assistants regularly suggest packages that don't exist (5.2% of suggestions from commercial models and 21.7% from open-source ones in Spracklen et al., USENIX Security 2025), and attackers register those names ("slopsquatting"). VeriCode now looks up every package declared in requirements*.txt, pyproject.toml and package.json on PyPI or npm:
- critical: the package does not exist
- high: first published less than 30 days ago
- medium: one letter away from a very popular package (
numpi,expres)
Critical and high findings set ok: false and fail --strict. --no-cve skips this lookup along with the CVE query. Network errors are skipped, never reported.
Also
- Directory excludes, inline
vericode: ignore, project virtualenv preference, pytest result summary - CI moved to Node 24 actions
Full notes: CHANGELOG.md
🤖 Generated with Claude Code