Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- run: corepack enable
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: lts/*
cache: "pnpm"
Expand All @@ -42,7 +42,7 @@ jobs:
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- run: corepack enable
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: lts/*
cache: "pnpm"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- run: corepack enable
- uses: actions/setup-node@v5
- uses: actions/setup-node@v6
Copy link

Choose a reason for hiding this comment

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

Suggested change
- uses: actions/setup-node@v6
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0

The actions/setup-node action is using a floating version tag (@v6) instead of a pinned commit hash, which is inconsistent with the approach used in ci.yml and introduces non-deterministic workflow behavior.

View Details

Analysis

Inconsistent GitHub Actions version pinning in playwright.yml

What fails: .github/workflows/playwright.yml line 21 uses a floating version tag actions/setup-node@v6 instead of a pinned commit hash, inconsistent with ci.yml which uses actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0

How to reproduce: Examine the workflow files:

  • ci.yml: Uses pinned commit hash format for all actions (e.g., actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0)
  • playwright.yml: Line 21 uses floating tag actions/setup-node@v6

Result: Floating version tags resolve to the latest matching release at workflow runtime, causing non-deterministic behavior where different workflow runs may execute different patch versions of the action.

Expected: All workflows should use pinned commit hashes per GitHub's official security recommendation that "pinning an action to a full-length commit SHA is currently the only way to use an action as an immutable release." This prevents tag mutation attacks and ensures reproducible CI runs.

Fix applied: Updated line 21 to use the same pinned commit hash as ci.yml: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0

with:
node-version: lts/*
cache: "pnpm"
Expand Down
Loading