Skip to content

ci: install CI's Python packages by hash, and check wasm-pack's SHA-256 in the Cursor setup - #846

Merged
DrunkOnJava merged 4 commits into
mainfrom
ci/hash-pinned-installs
Oct 19, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
ci/hash-pinned-installs

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

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:

  • CodeQL's three cleartext-logging findings: rvt-info printing a file's own last-saved-by user on purpose, with --redact for shared output, and a research example printing UUID bytes.
  • Scorecard's code-review, branch-protection and best-practices checks, which a one-maintainer project cannot meet, since an author cannot approve their own pull request.

Of the other 14, nine are fixed here, and five are dismissed by decision:

  • Scorecard PinnedDependencies (9). pip install -r of version pins without hashes (ci.yml three times, measure.yml once), two unpinned pip install --upgrade pip, and in .cursor/install.sh a curl | sh fallback, an unpinned pip install --upgrade pip maturin pytest and an npm install -g fallback.
  • zizmor dependabot-cooldown (5). Every Dependabot entry waits 3 days after a release, under zizmor's 7. The maintainer keeps 3: the project takes new stable releases promptly, and 3 days is the chosen balance against a hijacked release's exposure window. The alerts are dismissed with that reason.

Changes

  • tools/ci/requirements-{ifc,test}.in are the human-edited pins, with their comments. requirements-{ifc,test}.txt pin those and every dependency with their hashes, generated by uv 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.yml and measure.yml install with pip install --require-hashes -r. The two pip install --upgrade pip steps 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:
    • wasm-pack 0.14.0 is checked against the SHA-256 GitHub publishes for each release asset (x86_64 and aarch64 musl), and setup stops when the download fails or differs, rather than running the upstream installer;
    • the Python tools come from requirements-dev.txt by hash;
    • pnpm comes only through corepack, which checks what it downloads.
  • .github/dependabot.yml: the pip entry's comments name the .in and .txt files. The 3-day cooldown stays.
  • tools/check-local.sh and docs/validation-evidence.md's local steps install requirements-ifc.txt by hash, not ifcopenshell>=0.8.0,<0.9.0.
  • 43 tools/re scorers' docstrings and docs/validation-evidence.md name the IfcOpenShell requirements-ifc.txt pins 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.txt in a fresh Python 3.12 venv (macOS arm64), and -r tools/ci/requirements-ifc.txt in fresh 3.10 and 3.12 venvs: all install, and ifcopenshell 0.9.0.post1 (numpy 2.2.6 on 3.10, 2.5.4 on 3.12), pytest 9.1.1, jsonschema and maturin 1.15.0 import or run.
  • This pull request's CI installs the IfcOpenShell set in the IfcOpenShell job and the test set in the Python wheel and env config jobs on Linux, and its Measure run installs the IfcOpenShell set too. On main the wheel job also installs the test set on macOS and Windows.
  • shellcheck and bash -n pass on .cursor/install.sh; actionlint reports only the existing $/ action references.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)

Breaking changes

None to the crate. A pin change in tools/ci/requirements-*.in now needs the matching .txt regenerated with the command at its top.

@cursor

cursor Bot commented Oct 19, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread tools/check-local.sh Resolved
Comment thread docs/validation-evidence.md Resolved
@DrunkOnJava
DrunkOnJava force-pushed the ci/hash-pinned-installs branch from 6a75eae to edd5b5f Compare October 19, 2026 19:47
@cursor

cursor Bot commented Oct 19, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@cursor

cursor Bot commented Oct 19, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@DrunkOnJava DrunkOnJava changed the title ci: install CI's Python packages by hash, check wasm-pack's SHA-256, and give Dependabot a 7-day cooldown ci: install CI's Python packages by hash, and check wasm-pack's SHA-256 in the Cursor setup Oct 19, 2026
@DrunkOnJava
DrunkOnJava merged commit 586fdc2 into main Oct 19, 2026
33 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/hash-pinned-installs branch October 19, 2026 20:00
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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