Skip to content

[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

Closed

Description

@HetCreep

What happened?

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

uses: actions/checkout@v7
uses: astral-sh/setup-uv@v8
uses: actions/upload-artifact@v7
uses: github/codeql-action/upload-sarif@v4
uses: actions/github-script@v9
uv tool install git+https://github.com/NVIDIA/[email protected]

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

curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" ...

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

  1. Open docs/ci-integration.mdx at commit a0affcc9.
  2. Point 1: run echo '{}' | jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' — it exits 0 (gate passes) although no quality score exists.
  3. 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.

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. chrisknvidia commented on Nov 16, 2026

    @chrisknvidia
    Collaborator

    Thanks for the careful comparison, all three points were right.

    Once #630 is in, could you re-read the recipe and confirm it matches what you expected? We'll leave this open until then.

  3. chrisknvidia commented on Nov 16, 2026

    @chrisknvidia
    Collaborator

    #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.

  4. HetCreep commented on Nov 16, 2026

    @HetCreep
    Author

    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:

    1. 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).
    2. 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.
    3. 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.0 checksums.txt.

    This matches what I expected, so it is fine to close from our side.

  5. chrisknvidia commented on Nov 22, 2026

    @chrisknvidia
    Collaborator

    All three points are in through #630 and you confirmed them against bcbd770f above, so closing. Thanks for the careful read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions