Skip to content

ci: pin actions, use npm ci, pin Python requirements - #2

Merged
danrovito merged 2 commits into
mainfrom
ci/harden
Nov 23, 2026
Merged

danrovito merged 2 commits into
mainfrom
ci/harden

Conversation

@danrovito

Copy link
Copy Markdown
Member

What changed

  • Actions pinned to commit SHAs. actions/checkout, actions/setup-node and actions/setup-python now reference full SHAs, with the release as a trailing comment. Each is the latest release in its current major (v4.4.0, v4.4.0, v5.6.0).
  • npm ci instead of npm install in the typecheck and live jobs, so CI installs exactly what package-lock.json records. The lock file was already committed and in sync with package.json.
  • Python requirements pinned. requirements.txt pins every package with ==, including transitive dependencies, resolved with uv for Python 3.12. The top-level packages and ruff are unchanged.

Already in place (no change)

  • The workflow has top-level permissions: contents: read.
  • No workflow uses pull_request_target.
  • The live job still runs only on push to main and manual runs, and it still skips the runaway recipe.

Repo setting

Fork pull request approval is set to all_external_contributors for this repo.

Testing

  • npm run typecheck passes after npm ci.
  • ruff check . and python -m compileall -q sdks recipes pass with the pinned requirements on Python 3.12.

danrovito and others added 2 commits November 22, 2026 20:47
Pin actions/checkout, actions/setup-node and actions/setup-python to full commit SHAs with the release as a trailing comment, so a moved tag cannot change what runs. Use npm ci in place of npm install so CI installs exactly what package-lock.json records.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Every package in requirements.txt, including transitive dependencies, is now pinned with == (resolved with uv for Python 3.12). The top-level packages are unchanged; ruff stays in the list.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@danrovito
danrovito merged commit f3664fe into main Nov 23, 2026
3 checks passed
@danrovito
danrovito deleted the ci/harden branch November 23, 2026 01:56
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