Skip to content

ci: pin third-party GitHub Actions to full commit SHAs - #4922

Merged
wjones127 merged 1 commit into
lancedb:mainfrom
shu-chen-dot-ca:fix-3293-pin-actions
Nov 19, 2026
Merged

wjones127 merged 1 commit into
lancedb:mainfrom
shu-chen-dot-ca:fix-3293-pin-actions

Conversation

@shu-chen-dot-ca

Copy link
Copy Markdown
Contributor

Pin every remaining third-party action reference in .github/ to a full 40-character commit SHA, with the intended version in a trailing comment (uses: owner/action@<sha> # vX.Y.Z), following the pins already in cli.yml, typos.yml and make-release-commit.yml. Fixes #3293.

53 references across 13 files change, covering 16 actions, including the branch refs called out in the issue (dtolnay/rust-toolchain@master, @stable) and pypa/gh-action-pypi-publish@release/v1. Each SHA is the commit its current tag or branch resolves to today, so the code that runs is unchanged. Comments name the most specific tag on that commit (for example v2.9.3 for Swatinem/rust-cache@v2); where no such tag exists, they keep the original ref (v1 for srvaroa/labeler and rui314/setup-mold, v3 for addnab/docker-run-action, stable/master for dtolnay/rust-toolchain). The stable branch of dtolnay/rust-toolchain defaults its toolchain input to stable, so pinning its SHA keeps the nodejs.yml step that passes no toolchain on stable.

GitHub-maintained actions/* references are left on their tags, as in the existing pins. Keeping SHAs current through Dependabot is the sibling issue and is not part of this change.

Validation:

  • No third-party uses: reference in .github/ is left without a 40-character SHA (53 before, 0 after).
  • For all 23 distinct third-party pins in .github/, git ls-remote against the upstream repository confirms the SHA is the commit that the commented tag or branch points to. A deliberately altered SHA and a reverted tag ref were both caught.
  • pre-commit run on the changed files passes (check-yaml, end-of-file, trailing whitespace, typos).
  • actionlint 1.7.12 reports the same 35 findings on main and on this branch, all of them existing ones (custom runner labels and composite actions under workflows/). It reports none for this change.

@claude claude 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.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added the ci label Nov 9, 2026

@lancedb-gatekeeper lancedb-gatekeeper 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.

✅ Gate recommendation: approve.

This satisfies the third-party action pinning scope in #3293: the remaining refs now use full commit SHAs with readable version comments, and the selected commits match the previous refs. Rust toolchain defaults and the PyPI publisher's container-reference handling remain compatible. Automated pin updates can stay separate under #3292.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 9, 2026

@wkalt wkalt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks!

@shu-chen-dot-ca

Copy link
Copy Markdown
Contributor Author

Thanks! I looked at the three red checks, and none of them comes from this change. In each job, every step that runs one of the newly pinned actions passed, and each pinned SHA is the same commit its tag pointed to before, so the action code is unchanged:

  • NPM Publish, Test: x86_64-unknown-linux-gnu - node@22: failed in Test bindings, after checkout, pnpm and Node setup had all passed.
  • CLI release packages, aarch64 build: failed in Build Linux CLI against glibc 2.28. That job's workflow, cli-release.yml, isn't touched by this PR.
  • NodeJS, Linux (NodeJS 24, experimental-functions): the build passed, then Check docs was still running when the job hit its 30-minute limit.

@lancedb-gatekeeper lancedb-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 14, 2026
@wjones127
wjones127 merged commit c136022 into lancedb:main Nov 19, 2026
51 of 52 checks passed
@shu-chen-dot-ca
shu-chen-dot-ca deleted the fix-3293-pin-actions branch November 19, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security: pin third-party GitHub Actions to full SHAs

3 participants