Skip to content

chore(ci): pin the demo pip install by hash - #209

Merged
PIsberg merged 1 commit into
mainfrom
fix/scorecard-pip-hash
Aug 4, 2026
Merged

chore(ci): pin the demo pip install by hash#209
PIsberg merged 1 commit into
mainfrom
fix/scorecard-pip-hash

Conversation

@PIsberg

@PIsberg PIsberg commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Closes code-scanning alert 51, the one Scorecard finding PR #206 left behind: a version pin alone (asciinema==2.4.0) still trusts whatever PyPI serves at download time, and Scorecard's PinnedDependencies check wants pip installs hash-verified.

The install now goes through tools/demo/requirements.txt with --require-hashes, carrying PyPI's published sha256 for both 2.4.0 artifacts (wheel and sdist fallback). asciinema declares no dependencies (requires_dist is empty), so that single entry is the complete hash closure pip verifies.

Verified: demo.yml still parses as YAML; the hashes are PyPI's own published digests for the 2.4.0 release files.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UsCqogShCj1AVTEcP4FzLg

… alert

Scorecard alert 51: a version pin alone still trusts whatever PyPI
serves at download time. The install now goes through a requirements
file with --require-hashes, carrying PyPI's published sha256 for both
2.4.0 artifacts (wheel and sdist). asciinema declares no dependencies,
so that single entry is the complete hash closure pip verifies.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UsCqogShCj1AVTEcP4FzLg
@PIsberg
PIsberg merged commit 813fd43 into main Aug 4, 2026
19 checks passed
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant