Skip to content

feat(ci): add reusable Tier 1 scans and GitHub onboarding - #238

Merged
rng1995 merged 24 commits into
mainfrom
feat/christopherk/github-tier1-ci
Oct 29, 2026
Merged

rng1995 merged 24 commits into
mainfrom
feat/christopherk/github-tier1-ci

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Repository owners can add Tier 1 skill checks by copying one workflow and setting their skill directories. This adds the reusable scanner workflow, a complete container runtime, compact Actions feedback, native HTML reports, and optional hosted reports with one updated PR comment.

  • PRs scan only affected skills; pushes and manual runs scan all configured skills. No-change PRs explicitly report that validation did not run.
  • Static scanning includes the existing Tier 1 checks and SkillSpector. Optional LLM checks require an explicitly supplied secret. Tier 2 and Tier 3 remain out of scope.
  • The onboarding guide and three consumer templates cover basic scanning, trusted manual LLM scanning, and optional Pages/PR feedback. The maintainer guide covers release and hosting setup.
  • Official image publication is a manual action restricted to reviewed upstream main. An anonymous pull must succeed before the workflow generates onboarding files pinned to the actual workflow SHA and image digest.

Review fixes

Addressed the issues in all 37 inline review comments, consolidating duplicates:

  • Preserve completed scan evidence and explicit incomplete entries on timeout; validate configuration before scanning; correct annotations and symlink selection behavior.
  • Audit Python requirements without installing packages or executing build scripts. Unsupported declarations are incomplete, and static runs receive no LLM key. Lock scanner dependencies and the base image; update the installer to the release fixing GHSA-hq85-5cpj-mr62. The publisher uses that same hash-locked bootstrap.
  • Bind publication to the triggering run attempt and verified caller content. Handle error rows, deleted forks, stale comments and private-repository permissions. Queue deployments and bound deployed history.
  • Correct report identity, counts, finding navigation, mobile/print verdicts, and retained SkillSpector versions. Preserve blocking/advisory context and derive the CSP allowlist from trusted templates.
  • Reuse an already published revision digest on retry; separate anonymous-access verification from image publication. Update action pins, onboarding instructions and the HTML-report changelog.

Verification

  • Current head 6a2f7f90 merges main at 3d6a63a3. The changelog conflict preserves both branches' entries, and independent merge review confirmed no dropped tests or unintended code resolution.
  • 915 focused tests passed, with 2 skipped and 2 deselected, covering CI helpers, reports, CLI defaults, local Harbor behavior, workflow contracts and OSS packaging. Changed-file Ruff and whitespace checks passed.
  • Fern validation reported zero errors. Its comparison against previously published redirects could not run because FDR returned 403.
  • Current-head container verification passed all five real scans: valid collection, invalid name, one changed skill, no changes, and missing LLM key. Official publication and onboarding were intentionally skipped. Broader repository CI is still running; its completion is not yet claimed.
  • The preceding head b5173808 completed repository CI, security checks and all five real-container cases: 18 checks passed, with publication and onboarding intentionally skipped.
  • Earlier validation covered retained JSON/HTML/Markdown/SARIF, a harmless dependency build-script probe, Chrome finding navigation and mobile/print verdicts, package contents, and local publisher validation of a real scan artifact. These are distinct from a new hosted publication run.

Release and verification limits

No official NVIDIA image has been published. After review and merge, maintainers must confirm GHCR ownership/public visibility, run the guarded publication workflow and distribute its pinned onboarding bundle. Source templates retain release placeholders until then.

The previous personal demo exercised the full scan/Pages/comment flow: passing scan, intentional failure, publication. Those runs predate the review fixes. The revised privileged publisher, concurrent deployment queue, private-repository token and credentialed LLM success have not been exercised end to end.

Current constraints: Linux amd64; 100 selected skills and a bounded scan time budget; exact Python requirements pins for static dependency auditing; dedicated Pages hosting; same-repository PR comments only. Missing or ambiguous historical caller provenance prevents hosted publication. Deployed-history retention does not rewrite Git object history. Private repositories must explicitly configure private Pages or use artifacts when reports must remain private.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed revision 69712d3. Five actionable findings are attached inline, covering a reproduced CI failure, report navigation/identity, and publication concurrency/attempt handling.

Validation: 385 focused CI/reporting/workflow tests passed. The README word-limit test failed locally and matches the hosted CI failure. Additional targeted reproductions confirmed the retained-identity, hidden-finding, and rerun-attempt cases.

Comment thread README.md Resolved
Comment thread ci/publish_reports.py Resolved

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of the Tier 1 CI integration: 15 inline comments, P1 most severe. The main issues are in publication. Runs that contain an error skill row can't be published, PR comments can be dropped when deploys queue up, and a non-HTTPS report URL crashes the scan after all skills finish. The P3s and nit are cleanup and hardening.

Comment thread ci/publish_reports.py Resolved
Comment thread ci/run_tier1.py Resolved
Comment thread ci/report_views.py Resolved
Comment thread .github/workflows/evaluate-skills.yml Resolved
Comment thread ci/publish_reports.py Resolved
Comment thread ci/native_reports.py Resolved
Comment thread src/skillevaluator/reporting/html.py Resolved
Comment thread ci/Dockerfile.tier1 Resolved
Comment thread ci/run_tier1.py Resolved
@rng1995
rng1995 marked this pull request as ready for review October 27, 2026 17:45

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 17 findings (0 P1, 1 P2, 16 P3); 17 posted inline.

This review only adds findings that the two earlier reviews on this revision do not already cover.

What I checked and found sound, using real Git repositories, crafted artifacts and a locally built image:

  • Changed-skill selection: renames, whole-skill deletion, nested skills, a skill at the repository root, overlapping roots, spaces and unicode in paths, force-pushed PRs, and base equal to head. Exit codes for no change, failures, configuration errors, more than 100 skills and a missing LLM key.
  • Workflow inputs reach run: steps through quoted env vars, with no expression injection. Fork PRs use pull_request and reach no secret. Image publication is limited to a manual run on main in this repository, and packages: write is granted only to the publish job. Templates are pinned to the workflow SHA and the pushed digest.
  • No XSS in the native HTML, the index or the Markdown outputs with crafted names, descriptions and file contents. Markdown injection and marker forgery in the PR comment are neutralised. The publisher cannot be steered to another PR's alias or outside the Pages tree.
  • The wheel and sdist include the new report templates, and nothing under ci/ ships in the package. A trial merge with current main is clean.

Not approving yet: the dependency-audit P2 (build code from scanned requirements runs next to the LLM key) should be fixed first.

Comment thread .github/workflows/evaluate-skills.yml Resolved
Comment thread ci/publish_reports.py Resolved
Comment thread ci/publish_reports.py Resolved
Comment thread ci/native_reports.py Resolved
Comment thread ci/native_reports.py Resolved
Comment thread docs/github-actions.mdx Resolved
Comment thread ci/README.md Resolved
Comment thread ci/smoke_image.py Resolved
@chrisknvidia

Copy link
Copy Markdown
Collaborator Author

@rng1995 All 37 inline review comments are addressed, with a reply and resolution on each thread. The updated PR is ready for another review.

Could you take another look at the overall CI design, onboarding, GitHub feedback and HTML reports, including consistency with the internal report? Please feel free to make changes directly wherever you think the design or reporting can be improved.

Image verification passed all five real-container scenarios. The latest push also corrects the stale dependency-audit test fixture found by CI; all 50 related tests passed. The full CI rerun is still running.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 1 findings (0 P1, 1 P2, 0 P3); 1 posted inline.

Re-checked at 1aee274, after the ede79ba fixes.

Comment thread ci/report_views.py Resolved
Comment thread tests/ci/test_secret_redaction.py Fixed
Comment thread tests/ci/test_secret_redaction.py Fixed
Comment thread tests/ci/test_secret_redaction.py Fixed
chrisknvidia and others added 6 commits October 29, 2026 12:47
The runner only turned a contradictory report into an error row when the
report said passed. A failed or incomplete report with a wrong top-level
scanner list, or with exit code 0, stayed a normal row. The publisher then
rejected the whole artifact, so every other skill was lost.

The runner now checks each report with the publisher's validate_report.
Any contradiction becomes an error row with no scanner list and no pass,
so only that skill shows Report unavailable. The incomplete rollup test
now uses a consistent incomplete report, as the evaluator writes it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
A value with a zero-width space, BOM or other invisible character was
collected with that character. The Unicode check echoes the line with a
visible marker in its place, so the collected value no longer matched and
the key reached the reports and the Pages run.

Also match each value with the marker, without the invisible characters,
and each visible piece of 8 or more characters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Redaction matched whole values and leading prefixes only. A value
survived when upstream text started, ended or was escaped inside it: the
YARA context window can start inside a key, snippets are cut at 200
characters and Markdown cells escape | and backticks.

Also match every 8-character window of a value, its suffixes and its
Markdown cell form, and show one marker for adjacent matches. A
connection string match is only matched whole, so its words stay
readable. Mask user:password after a database URL scheme even when the
text ends before the "@", so a cut short password is hidden. A bare port
is kept. Group the patterns by first character so the scan stays fast.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
The retained Markdown and SARIF were the evaluator's own files with
literal values replaced. Those files cut and escape finding text, for
example at 57 characters and with &#124; in table cells, so part of a
credential could survive the search and reach the uploaded artifact.

Render both files from the redacted JSON with the same reporters, as the
native HTML already is. Output for a report without credentials is
unchanged apart from its timestamps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
The preflight only used the PII patterns, which need a quoted value. It
missed export NVIDIA_API_KEY=nvapi-... and Authorization: Bearer ...,
so another scanner could quote the key in an ::error annotation, the
retained reports and Pages.

Also collect the nvapi- key shape and unquoted KEY=value and Bearer
values for the same key names. Such a value must have letters and
digits and end at a word boundary, so ordinary words, variables and
paths are not collected. Lengths are bounded, so a long encoded blob is
not collected and cannot stop the scan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995 and others added 5 commits October 29, 2026 12:51
Say that the preflight also collects NVIDIA API keys and unquoted
KEY=value and Bearer credentials, that cut or escaped parts of values and
database URL passwords are removed, and that retained Markdown and SARIF
are rendered from the redacted JSON.

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

A database URL password shorter than 16 characters is matched only as a
whole value. When a scanner's context window starts inside it, the scheme
is cut off and the userinfo mask does not apply, so up to 13 characters
stayed in reports. Also match each end of such a password of at least 8
characters together with the "@" that follows it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
The preflight used str.splitlines(), which also splits on U+2028, U+2029,
U+0085, form feed and similar characters. The PII scan and the Unicode
check split on newlines only. A quoted credential with one of those
characters inside was flagged and echoed by the scanners, but the
preflight collected nothing, so the value was not redacted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
GitHub never fills pull_requests on a run from a fork PR. An empty
association made every fork PR scan skip as if the PR were closed.

Treat an empty association as stale only when the run's head repository
is this repository. For a fork run, find the open PR through the API from
the run's head repository and branch, then check its revisions as before.
Fork reports are kept in the history without a PR alias or comment.

A fork PR that closed or moved after the scan, or a deleted fork, is
skipped with an accurate reason. Malformed fork data still fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
In all mode, discover_skills checked the names it walked but not the
configured root itself. A root with a control character, such as TAB or
DEL, was scanned and the run passed, but the publisher then refused to
publish any report.

Configured roots now use the same rule as changed-skill selection, so the
run stops before scanning with a clear configuration error.

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

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. I re-checked every review thread and the new commits up to 6a2f7f9, then pushed 10 small fixes on top (53704b4):

  • Fork PR runs are published again. An empty pull_requests list is treated as stale only for same-repository runs; fork runs resolve their open PR through the API and keep no alias or comment, as the docs say.
  • Credential redaction also covers values that scanners cut, escape or echo with invisible characters, short database passwords, and unquoted nvapi- and Bearer values. The retained Markdown and SARIF are rendered from the redacted JSON.
  • A contradictory failed or incomplete report now becomes an error row, so the other skills still publish.
  • All-mode discovery rejects control characters in configured skill roots, matching changed mode.

Each fix has regression tests. tests/ci, tests/reporting, tests/validators, tests/cli and the redaction tests pass locally (3316 passed), and the OSS boundary check passes.

Non-blocking follow-ups:

  • A database password shorter than 4 characters, or one that also appears in a skill path, stops the whole run instead of failing just that skill.
  • The local CLI masks PII findings but still shows credentials echoed by other validators.
  • A short Password= value in a connection string can still leak a fragment when a scanner cuts it off mid-value.
  • The publisher's fallback for artifacts made before redaction finds only the first match on each line.

@rng1995
rng1995 enabled stacked auto-merge October 29, 2026 20:23
@rng1995
rng1995 merged commit ca47761 into main Oct 29, 2026
20 checks passed
@rng1995
rng1995 deleted the feat/christopherk/github-tier1-ci branch October 29, 2026 20:26
chrisknvidia added a commit that referenced this pull request Oct 30, 2026
* Add reusable Tier 1 GitHub CI and onboarding
* Fix live image verification and parser runner compatibility
* fix(ci): address Tier 1 onboarding review findings
* fix(ci): update locked uv installer for certificate advisory
* fix(ci): share the patched installer lock with report publishing
* test: align dependency publication fixture with audited inventory
* fix(ci): address follow-up review findings
* fix: prevent credential disclosure in tier 1 reports
* test: clarify synthetic credential fixtures

Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
* fix(ci): keep other skills when a non-passing report is contradictory
* fix(security): redact credentials echoed with invisible characters
* fix(security): redact credential fragments that scanners cut or escape
* fix(ci): render retained Markdown and SARIF from redacted JSON
* fix(ci): collect unquoted NVIDIA keys and Bearer values in preflight
* docs(ci): describe the wider credential redaction
* fix(security): redact short database passwords when a snippet starts inside them
* fix(ci): split preflight lines on newlines like the scanners
* fix(ci): publish fork PR runs again
* fix(ci): reject control characters in configured skill roots in all mode

Signed-off-by: Narendran Raghavan <[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.

3 participants