Repository navigation
chore(security): pin the remaining in-workflow package installs (Scorecard Pinned-Dependencies) - #521
Merged
Merged
Conversation
Closes the three open Scorecard Pinned-Dependencies alerts: - pages.yml installs MkDocs Material via pip install --require-hashes from a compiled website/requirements.txt (source: website/requirements.in). - Dockerfile.triage pins node:20-slim by digest and installs the Claude Code CLI via npm ci from a committed lockfile instead of a floating npm install -g. - ci.yml pins the pip-audit tool version for a reproducible audit gate. New dependabot entries (pip /website, npm + docker /scripts/autopilot) keep the pins fresh. Verified locally: hash-pinned install + mkdocs build green in a scratch 3.12 venv; the triage image builds from the pinned digest and the containerized claude --version runs.
- dependabot /website entry: pip -> uv ecosystem (pip would regenerate the file with pip-compile and clobber the uv header; uv recompiles .in -> .txt natively) — same pip-vs-uv class the root entry documents. - website/requirements.txt recompiled with --universal so the artifact is platform-independent (colorama turns out to be unconditional via mkdocs-material, not a Windows leak). - deps-watch.yml: one-line comment marking its pip-audit as deliberately floating (non-gating weekly watch wants fresh advisory tooling); CHANGELOG wording clarified to match.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the three open Scorecard Pinned-Dependencies code-scanning alerts (the exact three: pages.yml:35 pip, Dockerfile.triage:22 npm, Dockerfile.triage:1 base image):
pip install --require-hashes -r website/requirements.txt, compiled withuv pip compile --universal --generate-hashes --python-version 3.12fromwebsite/requirements.in(platform-independent artifact, 29 fully hash-pinned entries).node:20-slim@sha256:2cf067…); the floatingnpm install -g @anthropic-ai/claude-codeis replaced bynpm ci --omit=devfrom a committedpackage.json+package-lock.json(lockfileVersion 3, all entries registry.npmjs.org with sha512 integrity) + a/usr/local/bin/claudesymlink.deps-auditgate pinspip-audit==2.10.1(uvx has no dependabot ecosystem; bump by hand). The non-gating weeklydeps-watchjob deliberately keeps a floating pip-audit — fresh advisory tooling is its purpose (commented in-file).uvfor /website (NOTpip, which would regenerate the file in pip-compile format and clobber the uv header — same pip-vs-uv class the root entry documents),npm+dockerfor /scripts/autopilot (dependabot-core's docker fetcher regex/dockerfile|containerfile/iis unanchored —Dockerfile.triagematches, verified from source).Companion repo-state change (already done, no code): Scorecard alerts #6 SAST / #7 Fuzzing / #9 CIIBestPractices dismissed won't-fix with recorded reasons; #8 CodeReview and #1 BranchProtection left open (owner-only toggles).
Verification
pip install --require-hashesexit 0 →mkdocs buildgreen (both before and after the--universalrecompile).docker buildof the triage image from the pinned digest succeeds end-to-end; containerizedclaude --versionprints 2.1.232 (matches the lockfile pin).check_repo_hygiene.py(748 files) +check_doc_links.pygreen; all three YAMLs parse.Test plan
website/**trigger covers the new requirements files)🤖 Generated with Claude Code