chore: pin github actions to commit sha, update pnpm#2761
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughMultiple GitHub Actions workflows now pin third-party actions to commit SHAs, several ci.yml jobs change Node version and build dependencies, smoke-test.yml updates pnpm, and the WebSocket upgrade test uses a dedicated Vitest environment with a conditional WebSocket setup. ChangesCI workflow action pinning
Other workflow action pinning
WebSocket test runtime
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)
18-29: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winVerified SHA pins for
actions/checkout,actions/cache, andactions/setup-node.Spot-checked via GitHub:
actions/checkout@9c091bb2...= v7.0.0,actions/cache@55cc8345...= the v6.1.0 bump,actions/setup-node@48b55a01...= v6.4.0. These match the intended tags.However, none of the pins in this file include an inline
# vX.Y.Zcomment, which is the widely-used convention for pinned actions (readability + easier future audits/bumps). Consider adding version comments to every pinneduses:line, e.g.:♻️ Example
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0Also applies to: 53-61, 75-75, 88-101, 123-136, 158-171, 193-203, 217-230, 248-248, 259-272
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/ci.yml around lines 18 - 29, Add inline version comments to every pinned GitHub Actions `uses:` entry in the workflow so the referenced action version is obvious at a glance. Update the existing pinned steps in the CI workflow (for example the `actions/checkout`, `pnpm/action-setup`, and `actions/setup-node` steps) to include their corresponding `# vX.Y.Z` tags, and apply the same convention to the other pinned action blocks referenced in this file.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/ci.yml:
- Around line 18-29: Add inline version comments to every pinned GitHub Actions
`uses:` entry in the workflow so the referenced action version is obvious at a
glance. Update the existing pinned steps in the CI workflow (for example the
`actions/checkout`, `pnpm/action-setup`, and `actions/setup-node` steps) to
include their corresponding `# vX.Y.Z` tags, and apply the same convention to
the other pinned action blocks referenced in this file.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 41cccbb2-6950-4ec9-a2bc-a34aef7ee9c8
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (8)
.github/workflows/ci.yml.github/workflows/compat.yml.github/workflows/release-preview.yml.github/workflows/release.yml.github/workflows/smoke-test.yml.github/workflows/typescript-nightly.ymlpackage.jsonpnpm-workspace.yaml
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/ci.yml (1)
18-29: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winThese SHA pins jump major versions —
checkoutv7,setup-nodev6,cachev6, andupload-artifactv7, so this is more than a straight pin of the current v4 line-up. Split the upgrade from the pinning change or call it out explicitly.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/ci.yml around lines 18 - 29, The workflow currently pins GitHub Actions to SHAs that jump major versions, so the change is not just a simple pin of the existing releases. Update the CI workflow entries for actions/checkout and actions/setup-node to either stay on the current major line or split this into a separate upgrade PR, and make the version bump explicit if you keep the new SHAs.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In @.github/workflows/ci.yml:
- Around line 18-29: The workflow currently pins GitHub Actions to SHAs that
jump major versions, so the change is not just a simple pin of the existing
releases. Update the CI workflow entries for actions/checkout and
actions/setup-node to either stay on the current major line or split this into a
separate upgrade PR, and make the version bump explicit if you keep the new
SHAs.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: af9070f7-5451-4ae5-ab05-bc65dd8fed37
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (6)
.github/workflows/ci.yml.github/workflows/compat.yml.github/workflows/release-preview.yml.github/workflows/release.yml.github/workflows/smoke-test.yml.github/workflows/typescript-nightly.yml
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/smoke-test.yml
commit: |
Released: v2.14.7 🎉This has been released in v2.14.7. Get these changes by running the following command: Predictable release automation by Release. |
undici@7since the latest version doesn't support Node.js 20.