Repository navigation
ci: install CI's Python packages by hash, and check wasm-pack's SHA-256 in the Cursor setup - #846
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: de2e170c-de5f-4483-9da7-63276eab3731) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6a75eaefe3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…p checks wasm-pack's SHA-256, and Dependabot waits 7 days
… validation steps install it by hash
6a75eae to
edd5b5f
Compare
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 9f43a0cc-0630-49c6-ba1c-9a274d0966ba) |
…taking new releases promptly
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 49b242aa-f917-4eab-8a1e-f32feba4724a) |
Summary
CI, Measure and the Cursor setup install their Python packages by hash, with every dependency pinned. The Cursor setup also checks wasm-pack's download against its published SHA-256 instead of falling back to
curl ... | sh, and gets pnpm only through corepack. This clears the nine open Scorecard pinned-dependency alerts the maintainer audit reports.Motivation
The maintainer audit's alert check failed with 20 open code-scanning alerts. Six were dismissed with their reasons:
rvt-infoprinting a file's own last-saved-by user on purpose, with--redactfor shared output, and a research example printing UUID bytes.Of the other 14, nine are fixed here, and five are dismissed by decision:
pip install -rof version pins without hashes (ci.ymlthree times,measure.ymlonce), two unpinnedpip install --upgrade pip, and in.cursor/install.shacurl | shfallback, an unpinnedpip install --upgrade pip maturin pytestand annpm install -gfallback.Changes
tools/ci/requirements-{ifc,test}.inare the human-edited pins, with their comments.requirements-{ifc,test}.txtpin those and every dependency with their hashes, generated byuv pip compile --universal --generate-hashes, whose header gives the command. Both sets cover Python 3.10 and later on every platform, so uv forks numpy, shapely and rpds-py by Python version; CI and Measure use 3.12.requirements-dev.{in,txt}add maturin 1.15.0 to the test set for the Cursor setup.ci.ymlandmeasure.ymlinstall withpip install --require-hashes -r. The twopip install --upgrade pipsteps are gone; the runners' pip installs hashed requirements as they are. The IfcOpenShell step's comment no longer says 0.9 is held (chore(ci): CI and Measure run IfcOpenShell 0.9.0.post1, its scores unchanged (#773) #795 moved the pin)..cursor/install.sh:requirements-dev.txtby hash;.github/dependabot.yml: the pip entry's comments name the.inand.txtfiles. The 3-day cooldown stays.tools/check-local.shanddocs/validation-evidence.md's local steps installrequirements-ifc.txtby hash, notifcopenshell>=0.8.0,<0.9.0.tools/rescorers' docstrings anddocs/validation-evidence.mdname the IfcOpenShellrequirements-ifc.txtpins rather than 0.8.5 (Measure has run them on 0.9.0.post1 since chore(ci): CI and Measure run IfcOpenShell 0.9.0.post1, its scores unchanged (#773) #795, outputs byte-identical).Testing
pip install --require-hashes -r tools/ci/requirements-dev.txtin a fresh Python 3.12 venv (macOS arm64), and-r tools/ci/requirements-ifc.txtin fresh 3.10 and 3.12 venvs: all install, andifcopenshell0.9.0.post1 (numpy 2.2.6 on 3.10, 2.5.4 on 3.12),pytest9.1.1,jsonschemaandmaturin1.15.0 import or run.mainthe wheel job also installs the test set on macOS and Windows.shellcheckandbash -npass on.cursor/install.sh;actionlintreports only the existing$/action references.Audit-honesty checklist
Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)Breaking changes
None to the crate. A pin change in
tools/ci/requirements-*.innow needs the matching.txtregenerated with the command at its top.