Skip to content

Commit 3720530

Browse files
fix(ci): SHA-pin all GitHub Actions and fix pnpm version conflict
- Remove version: 10 from malware-safe-chain (conflicts with packageManager) - SHA-pin all checkout, pnpm/action-setup, setup-node, set-timezone actions - Upgrade to Node 24 in malware-safe-chain - Add --ignore-scripts protection
1 parent c8964e8 commit 3720530

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
lint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
# SHA-pinned actions (prevent tag hijacking)
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1213
- uses: ./.github/actions/prepare
1314
- run: pnpm lint

.github/workflows/malware-safe-chain.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ jobs:
1010
malware-safe-chain:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
# SHA-pinned actions (prevent tag hijacking)
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1415
- name: Install pnpm
15-
uses: pnpm/action-setup@v4
16-
with:
17-
version: 10
16+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
1817
- name: Use Node.js
19-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2019
with:
21-
node-version: '22'
20+
node-version: '24'
2221

2322
- name: Install safe-chain
2423
run: curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
2524

2625
- name: Install dependencies with Safe Chain protection
27-
run: pnpm install --frozen-lockfile
26+
run: pnpm install --frozen-lockfile --ignore-scripts

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: szenius/set-timezone@v1.2
11+
- uses: szenius/set-timezone@ce9c440bc3af4f51b28d7ef7e5c47ee8f26c8dcb # v1.2
1212
with:
1313
timezoneLinux: 'Asia/Tokyo'
14-
- uses: actions/checkout@v4
14+
# SHA-pinned actions (prevent tag hijacking)
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1516
- uses: ./.github/actions/prepare
1617
- name: Create .env file
1718
run: |

0 commit comments

Comments
 (0)