You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: docs CI recipe (ci-integration.mdx) is less hardened than the repo's own workflows — empty-summary gate passes, unpinned actions, unverified gitleaks download #603
The copy-paste CI recipe in docs/ci-integration.mdx is noticeably less hardened than the project's own workflows under .github/workflows/, which SHA-pin every action (90/90 uses: references are 40-hex commit pins). A reader who copies the documented recipe inherits three weaknesses the project has already addressed in its own CI. This is a documentation-consistency / reliability report, not a security vulnerability in the product.
Verified by reading the files at commit a0affcc9.
1. The documented jq quality gate passes when there are no quality scores (fail-open). docs/ci-integration.mdx:316
jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report"
If quality_summary is empty or absent (an incomplete run, a Tier-1-only run, or a target that produced no quality dimension), [...] is [], min is null, and // 100 substitutes 100, so 100 >= 80 is true and the gate passes. A gate meant to block low-quality skills silently succeeds exactly when it measured nothing. If passing-on-absence is intended, a one-line comment would make that explicit; otherwise // 0 (or an explicit emptiness check) would fail closed.
2. The recipe pins mutable tags while the repo's own workflows pin commit SHAs. docs/ci-integration.mdx:64,67,93,131,138 and the tool installs at :77,:82
Every uses: in .github/workflows/ is SHA-pinned; the documented recipe uses movable @vN tags (and a movable Git tag for SkillSpector). Pinning the recipe to the same discipline the project already follows keeps copied pipelines reproducible and consistent with the repo's stance.
3. The gitleaks tarball is downloaded without integrity verification. docs/ci-integration.mdx:82
The download is extracted and run with no checksum check. gitleaks publishes gitleaks_<ver>_checksums.txt per release; verifying the archive against it before extraction would match the care the rest of the recipe's scanning step is meant to provide.
Reproduction steps
Open docs/ci-integration.mdx at commit a0affcc9.
Point 1: run echo '{}' | jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' — it exits 0 (gate passes) although no quality score exists.
Points 2–3: read lines 64/67/77/82/93/131/138 and compare with any file under .github/workflows/, where grep -rhoE "uses:[ ]*[^ ]+@[^ ]+" .github/workflows/ | grep -vcE "@[0-9a-f]{40}" returns 0 (all SHA-pinned).
SkillEvaluator version or commit
a0affcc9 (main)
Environment
Documentation (docs/ci-integration.mdx); no runtime. Found during an external documentation review with AI assistance; every claim above was verified by reading the cited files at a0affcc9. Happy to open a focused PR for points 2 and 3 and, if you confirm the intended behavior, point 1.
#630 is merged now, so the CI recipe in the docs has the fail-closed gate, SHA-pinned actions, the pinned SkillSpector install, and the checksum-verified Gitleaks download. Could you re-read it and confirm it matches what you expected? We'll leave this open until you do.
Thank you for the quick work on all three points. I re-read docs/ci-integration.mdx at bcbd770f (with #630 in) and checked each one against the file:
The gate (lines 328 to 336) now fails closed. It exits 1 when no report is found, checks every report found, and requires each to carry at least one quality score with min >= 80. I ran the jq expression on an empty {} report (exit 1), a score of 90 (exit 0) and a score of 70 (exit 1).
The five actions (lines 64, 67, 100, 138, 145) are pinned to commit SHAs, and each SHA is the commit its release tag points to. SkillSpector (line 77) installs from 54824463814a0be01360792523ec7245a69190fc, the commit behind v2.13.4.
The Gitleaks archive is checked with sha256sum -c (line 89) before tar unpacks it (line 90). The digest on line 84 is the linux_x64 line of the v8.30.0checksums.txt.
This matches what I expected, so it is fine to close from our side.
Activity
chrisknvidia commentedon Nov 16, 2026
Thanks for the careful comparison, all three points were right.
checksums.txtbefore extracting.Once #630 is in, could you re-read the recipe and confirm it matches what you expected? We'll leave this open until then.
chrisknvidia commentedon Nov 16, 2026
#630 is merged now, so the CI recipe in the docs has the fail-closed gate, SHA-pinned actions, the pinned SkillSpector install, and the checksum-verified Gitleaks download. Could you re-read it and confirm it matches what you expected? We'll leave this open until you do.
HetCreep commentedon Nov 16, 2026
Thank you for the quick work on all three points. I re-read
docs/ci-integration.mdxatbcbd770f(with #630 in) and checked each one against the file:min >= 80. I ran thejqexpression on an empty{}report (exit 1), a score of 90 (exit 0) and a score of 70 (exit 1).54824463814a0be01360792523ec7245a69190fc, the commit behindv2.13.4.sha256sum -c(line 89) beforetarunpacks it (line 90). The digest on line 84 is thelinux_x64line of thev8.30.0checksums.txt.This matches what I expected, so it is fine to close from our side.
chrisknvidia commentedon Nov 22, 2026
All three points are in through #630 and you confirmed them against
bcbd770fabove, so closing. Thanks for the careful read.