Repository navigation
feat(ci): add reusable Tier 1 scans and GitHub onboarding - #238
Conversation
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
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.
rng1995
left a comment
There was a problem hiding this comment.
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.
rng1995
left a comment
There was a problem hiding this comment.
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 usepull_requestand reach no secret. Image publication is limited to a manual run on main in this repository, andpackages: writeis 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.
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
|
@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. |
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
…hub-tier1-ci Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
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 | 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]>
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
left a comment
There was a problem hiding this comment.
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_requestslist 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.
* 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]>
* 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]>
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.
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:
Verification
6a2f7f90mergesmainat3d6a63a3. The changelog conflict preserves both branches' entries, and independent merge review confirmed no dropped tests or unintended code resolution.b5173808completed repository CI, security checks and all five real-container cases: 18 checks passed, with publication and onboarding intentionally skipped.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.