Skip to content

Set up Tier 1 scanners on first use and add --skip - #318

Merged
chrisknvidia merged 9 commits into
mainfrom
feat/christopherk/tier1-scanner-setup
Nov 2, 2026
Merged

chrisknvidia merged 9 commits into
mainfrom
feat/christopherk/tier1-scanner-setup

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

Summary

Builds on #316, which adds the "what to fix" list; review that one first. This PR's base will move to main once #316 merges.

Tier 1 now works without installing scanners by hand:

  • SkillSpector: when no executable is found, Tier 1 downloads the pinned 2.13.3 release wheel, verifies its SHA-256 and runs it with uv tool run.
  • Gitleaks: Tier 1 downloads the pinned 8.30.0 binary and verifies its SHA-256 (Linux and macOS).
  • Install output: both install without a prompt, so CI installs them too, and each prints one line.
  • Semgrep: optional, unless SKILLEVALUATOR_REQUIRE_SEMGREP=1 is set (the Tier 1 CI image sets it).
  • Setup failures: a scanner that can't be set up stays INCOMPLETE with exit 1. "What to fix" gives the real cause, the network hosts to check, the manual install command and the --skip option.
  • --skip <check>: on validate and tier1, e.g. --skip secrets. Nothing is installed for a skipped check, it shows as skipped, and Tier 1 can't certify for publication.
  • Scanner versions: a scanners row and a per-result scanners field in the JSON record which versions ran.

First run with no scanners installed:

✓ SkillSpector 2.13.3 installed (checksum-verified)
✓ Gitleaks 8.30.0 installed (checksum-verified)
╭─ Tier 1 · Static & Security ─────────────────────────────────
│    checks      ✓ schema · ✓ version · ✓ security · ✓ pii · ✓ license ·
│                ✓ code-integrity · ✓ unicode · ✓ quality · ✓ lint
│    scanners    SkillSpector 2.13.3 · Bandit 1.9.4 · Gitleaks 8.30.0
│    summary     11/11 passed

When SkillSpector's dependencies can't be downloaded:

│  1 setup       security didn't run: couldn't set up SkillSpector 2.13.3 (connection refused (os error 111))
│                → check network access to github.com and pypi.org, then rerun
│                → or install it yourself: uv tool install https://github.com/NVIDIA/SkillSpector/releases/download/v2.13.3/skillspector-2.13.3-py3-none-any.whl
│                → or skip it: --skip security

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint (ruff check on the changed files)
  • Ran make test (full suite; the only failures are environment-specific ones that also fail on main)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Also ran Tier 1 with an empty HOME, no scanners on PATH and an empty runtime folder: both scanners installed, 11/11 passed, and a second run installed nothing.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

- Tier 3: one row per test case with and without the skill, pass counts,
  live progress while trials run, and the lift
- Tiers 1-3: a short "what to fix" list (problem, then the action)
  replaces the per-check failure rows; the verdict points to it
- A required scanner that could not run is counted as "didn't run",
  not as a failed check
- Secrets findings suggest removing and revoking the secret

Signed-off-by: Christopher Kevin <[email protected]>
- SkillSpector: when no executable is found, fetch the pinned 2.13.3
  release wheel (SHA-256 verified) and run it with uv; Gitleaks: fetch the
  pinned 8.30.0 binary (SHA-256 verified). Both install without a prompt
  and print one line each
- Semgrep is optional unless SKILLEVALUATOR_REQUIRE_SEMGREP=1 (set in the
  Tier 1 CI image)
- A scanner that cannot be set up stays INCOMPLETE (exit 1); "what to fix"
  gives the real cause, the manual install command and the --skip option
- --skip <check> (e.g. secrets, security) leaves a check out: nothing is
  installed for it, it shows as skipped, and Tier 1 cannot certify
- A "scanners" row and the per-result JSON record which scanner versions ran

Signed-off-by: Christopher Kevin <[email protected]>
Case rows refresh from a polling thread while engine lines arrive from the
runner; a lock keeps the two from updating the view at the same time. Also
keeps the lift condition in its original layout.

Signed-off-by: Christopher Kevin <[email protected]>
Also drops a formatting-only change and redundant parentheses.

Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Base automatically changed from feat/christopherk/what-to-fix-output to main November 2, 2026 22:04
@chrisknvidia
chrisknvidia merged commit a705bb6 into main Nov 2, 2026
20 of 21 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/tier1-scanner-setup branch November 2, 2026 22:42
rng1995 added a commit that referenced this pull request Nov 6, 2026
* docs(changelog): move entries released in 0.7.0-0.7.2 out of Unreleased

0.7.0 (#314) and 0.7.1 (#327) never cut their sections on main, and 0.7.2
(#335) added its section below the whole Unreleased block, so Unreleased
still listed work that had already shipped.

Place each Unreleased entry under the release that shipped the PR that
added it:

- 0.7.0: the published section from the 0.7.0 tag, verbatim. It already
  holds the six entries that main had filed under 0.6.0, so 0.6.0 again
  matches the v0.6.0 tag, including the original run_config.json entry.
- 0.7.1: #264 #271 #274 #281 #284 #289 #293 #299 #316 #317 #318 #323
  #324 #326 #327, plus the #320 wording of the Windows Git-root entry,
  since #320 changed that 0.7.0 fix in 0.7.1.
- 0.7.2: #263 #265 #269 #270 #276 #279 #287 #290 #296 #309 #328 #330
  merged with the existing #335 entries.

Only post-v0.7.2 entries stay under Unreleased, with one heading per
subsection. Entry text is unchanged, apart from the published tag wording
in 0.7.0 and 0.6.0.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(release): prepare v0.8.0

Set the package, fallback, lock, citation and developer-guide versions to
0.8.0 and move every entry merged since v0.7.2 under
'## 0.8.0 - 2026-11-05', leaving Unreleased empty.

The refusal-fallback documentation test now reads the release section
that names CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK, requires it to be 0.8.0,
and requires exactly one entry there to name the switch.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(release): pin the verified 0.8.0 Tier 1 image and add its CI bundle

Pin onboarding to the Tier 1 image published by the reviewed main revision
55d2d04 in "Build and publish Tier 1 image" run 42158955180:
ghcr.io/nvidia/skillevaluator-tier1@sha256:9d5483243918937be4f2178f74cf7c622a531dee41e3176906994d52fa14950a
(config sha256:d17d6f5105ec5f1bf0cbe4dff0d693aae4ecf01e9c1c6a6ddb7830518acace33).
The workflow and publisher refs both move to 55d2d04.

ci/bundles/0.8.0 mirrors the 0.7.2 bundle. The templates, README and
release.json are the run's github-actions-onboarding artifact and match
ci/render_templates.py output for these pins byte for byte. The scanner
inventory and verification receipt come from the build's runtime-stage
version step, the five-case smoke receipt, the onboarding job's anonymous
pull, and the public manifest, whose config digest equals the smoke-tested
image ID. The ZIP uses the 0.7.2 layout (sorted members, inner checksums,
1980 timestamps, 0644, deflate level 9) and rebuilds to identical bytes.

Point the current-bundle links at 0.8.0 and list 0.7.2 as historical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@chrisknvidia chrisknvidia mentioned this pull request Nov 13, 2026
8 of 9 tasks
rng1995 added a commit that referenced this pull request Nov 16, 2026
…#669)

The CI guide's troubleshooting note for an incomplete status said that
installing SkillEvaluator alone does not install the scanners. Since #318
the first Tier 1 run downloads pinned, checksum-verified SkillSpector and
Gitleaks releases when they are missing, so the note now points readers
to network access instead. It also says a missing Semgrep makes the run
incomplete only when SKILLEVALUATOR_REQUIRE_SEMGREP=1 is set.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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