Repository navigation
ci: hash-pin the remaining pip installs (Scorecard Pinned-Dependencies) - #96
Merged
Merged
Conversation
Scorecard flagged four workflow installs that resolved from PyPI or fetched an unpinned build backend: `pip install .` in demo-gif.yml (both jobs) and quickstart.yml, and `pip install --no-deps ./.framework` in ci.yml. Each now installs its dependencies and build backend from a hash-pinned requirements file, builds the wheel with --no-build-isolation, and installs that wheel with --no-deps: - requirements/install.in/.txt (new): runtime deps plus hatchling. - requirements/chock.in/.txt: add setuptools>=77, chock's build backend. Scorecard --local Pinned-Dependencies: 8 -> 9. The remaining warning is docs/quickstart.sh:4, the README's end-user `pip install context-report`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jothi Mani Rajendran <250249270+jothimani-rajendran@users.noreply.github.com>
jothimani-rajendran
marked this pull request as ready for review
October 16, 2026 23:37
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.
What
SEC-4 (org-plan
plan/sec-scan-2026-10-16.md). Scorecard Pinned-Dependencies flagged four workflow installs that resolved from PyPI or fetched an unpinned build backend:demo-gif.yml(both jobs) andquickstart.yml:pip install .ci.ymlpolicies job:pip install --no-deps ./.framework(build isolation fetched an unpinned setuptools)Each now installs its dependencies and build backend from a hash-pinned file (
--require-hashes), builds the wheel with--no-build-isolation, and installs that wheel with--no-deps. Installs stay non-editable.requirements/install.in/.txt(new): runtime deps (jsonschema,pyyaml) plushatchling.requirements/chock.in/.txt: addssetuptools>=77, chock's build backend. Only that one package was added; no existing pin moved.Both files were generated with the repo's existing
pip-compile --generate-hashes --allow-unsafe --strip-extrascommand and header, on Python 3.12.Scanner results, measured locally before → after
--local, Pinned-Dependencies: 8 (5 warnings) → 9 (1 warning). All other file checks are unchanged: Token-Permissions 10, Fuzzing 0, License 9.docs/quickstart.sh:4. That file is generated from the README and runs the end-userpip install context-report. This PR leaves it alone.--offline: no findings, before and after (4 suppressions unchanged). Online audits were not run: the available token got a 401.python-security-and-qualitywith.github/codeql/codeql-config.yml: 0 results. Theactions-security-and-qualitysuite, whichcodeql.ymldoes not configure, also returned 0 results.Write permissions (unchanged)
None were added or widened. These remain because each job needs them:
release.yml:contents: writeto attach the dist files and Sigstore bundles to the Release.demo-gif.ymlrender-and-commit:contents: writeto push the regenerated GIF to the non-main branch.codeql.yml,scorecard.yml,security.yml:security-events: writeto upload SARIF.pages.yml: Pages deploy.stale.yml: labels and closes stale issues and PRs.Definition of done
python -m ruff check .andpython -m ruff format --check .clean (no Python changed)python -m pytest -qgreen (CI)chock checkandchock sync --repo . --checkclean. I ran them locally with chock v0.9.0 installed the new way.The new install path was also checked locally on Python 3.12:
pip checkreported no broken requirements, anddocs/quickstart.shran end to end (well-formed and bound: True).Claims
Generated by Claude Code