Pin pnpm/action-setup to immutable SHAs in GitHub workflows#706
Merged
Conversation
Agent-Logs-Url: https://github.com/z-shell/wiki/sessions/bd69b14f-ad5b-4221-a431-efaef7777bf6 Co-authored-by: ss-o <59910950+ss-o@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ss-o
April 29, 2026 01:58
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens GitHub Actions workflows by pinning pnpm/action-setup to an immutable commit SHA (annotated with the upstream v4 tag) instead of using the mutable @v4 ref.
Changes:
- Updated
.github/workflows/pages-deployment.yamlto usepnpm/action-setup@<sha>rather than@v4. - Updated
.github/workflows/ci-perf.yml(both jobs) to use the same pinned SHA forpnpm/action-setup.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/pages-deployment.yaml | Pins pnpm/action-setup to the v4 commit SHA for deploy workflow security hardening. |
| .github/workflows/ci-perf.yml | Pins pnpm/action-setup to the same immutable SHA in both perf jobs. |
ss-o
approved these changes
Apr 29, 2026
ss-o
added a commit
that referenced
this pull request
Apr 29, 2026
…able v5 SHA (#707) * Pin `pnpm/action-setup` to immutable SHAs in GitHub workflows (#706) fix: pin pnpm action in workflows Agent-Logs-Url: https://github.com/z-shell/wiki/sessions/bd69b14f-ad5b-4221-a431-efaef7777bf6 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ss-o <59910950+ss-o@users.noreply.github.com> * merge main into PR 705 branch Agent-Logs-Url: https://github.com/z-shell/wiki/sessions/e6834102-e5ec-42c9-a1a7-6228d6a0f17b Co-authored-by: ss-o <59910950+ss-o@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: ss-o <59910950+ss-o@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates the workflow steps flagged in PR #705 for using a mutable third-party action ref. The affected GitHub Actions now reference
pnpm/action-setupby commit SHA instead of a version tag.Security hardening
pnpm/action-setup@v4with the corresponding immutable commit SHA in:.github/workflows/ci-perf.yml.github/workflows/pages-deployment.yamlScope