Skip to content

CI: real-tool smoke for semgrep and njsscan - #2366

Merged
remigiusz-antczak merged 2 commits into
mainfrom
feat/hub-real-smoke-5b
Nov 13, 2026
Merged

remigiusz-antczak merged 2 commits into
mainfrom
feat/hub-real-smoke-5b

Conversation

@remigiusz-antczak

Copy link
Copy Markdown
Collaborator

Adds real semgrep 1.182.1 (the version provision_tools.sh installs) (local rules, no registry fetch) and njsscan 0.4.2 canaries to the real-hub CI job, installed from their own hash-locked requirements file into a separate venv (like checkov), so their older click, jsonschema and wcmatch pins never replace the main env's. njsscan now runs with semgrep metrics off and a sandboxed HOME. Also pins the trufflehog canary to its exact detector name and aligns the checkov pin in provision_tools.sh with CI (3.4.5).

Deferred: trivy config (needs a downloaded DB that cannot be hash-pinned yet) and cppcheck (no upstream Linux binary with a checksum file).

Tests: semgrep and njsscan canaries pass locally; bash -n, actionlint, the size gate, the size ratchet and the privacy gate pass. The Linux hashed install is proven in CI.

🤖 Generated with Claude Code

remigiusz-antczak and others added 2 commits November 13, 2026 19:11
Adds real semgrep 1.157.0 (repo rules, no registry pack) and njsscan 0.4.2
canaries to the real-hub job. They install from their own hash-locked
scripts/real-hub-requirements-semgrep.txt venv because semgrep pins click
8.1.8, jsonschema 4.25.1 and wcmatch 8.5.2, older than the versions the
other tools resolve to. The trufflehog canary matches the exact detector
name Github. provision_tools.sh pins checkov 3.4.5. review_checks.sh runs
njsscan with the sandboxed HOME and no semgrep metrics, asserted by the
hub stub test.

Tests: 21/21 (hub secrets-node stub test; k8s-js and js-iac-license hub tests pass; real-hub canaries run in CI)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The real-hub semgrep and njsscan venv now resolves semgrep 1.182.1, the
version provision_tools.sh installs for users (njsscan 0.4.2 is compatible).
Its Linux wheels are manylinux_2_34, so the lock is re-derived for that
platform. test-provision-tools.sh now expects the checkov==3.4.5 pin.

Tests: 61/61 (test-provision-tools.sh)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@remigiusz-antczak
remigiusz-antczak merged commit de774eb into main Nov 13, 2026
13 checks passed
@remigiusz-antczak
remigiusz-antczak deleted the feat/hub-real-smoke-5b branch November 13, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant