Skip to content

Commit 3011ed1

Browse files
committed
fix: more secure
1 parent 1ea6f6f commit 3011ed1

File tree

4 files changed

+34
-23
lines changed

4 files changed

+34
-23
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ jobs:
3030

3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
34+
with:
35+
fetch-depth: 0
3436

3537
- name: Install pnpm
36-
uses: pnpm/action-setup@v4
38+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
3739

3840
- name: Setup Node.js ${{ matrix.node }}
39-
uses: actions/setup-node@v4
41+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
4042
with:
4143
node-version: ${{ matrix.node }}
4244
cache: 'pnpm'
@@ -48,7 +50,7 @@ jobs:
4850
run: pnpm build
4951

5052
- name: Cache dist
51-
uses: actions/cache@v4
53+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
5254
with:
5355
path: packages/*/lib
5456
key: build-intlify-bundle-tools-os-${{ matrix.os }}-${{ github.sha }}
@@ -66,13 +68,15 @@ jobs:
6668

6769
steps:
6870
- name: Checkout
69-
uses: actions/checkout@v4
71+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
72+
with:
73+
fetch-depth: 0
7074

7175
- name: Install pnpm
72-
uses: pnpm/action-setup@v4
76+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
7377

7478
- name: Setup Node.js ${{ matrix.node }}
75-
uses: actions/setup-node@v4
79+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
7680
with:
7781
node-version: ${{ matrix.node }}
7882
cache: 'pnpm'
@@ -81,7 +85,7 @@ jobs:
8185
run: pnpm install
8286

8387
- name: Restore dist cache
84-
uses: actions/cache@v4
88+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
8589
with:
8690
path: packages/*/lib
8791
key: build-intlify-bundle-tools-os-${{ matrix.os }}-${{ github.sha }}
@@ -104,13 +108,15 @@ jobs:
104108

105109
steps:
106110
- name: Checkout
107-
uses: actions/checkout@v4
111+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
112+
with:
113+
fetch-depth: 0
108114

109115
- name: Install pnpm
110-
uses: pnpm/action-setup@v4
116+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
111117

112118
- name: Setup Node.js ${{ matrix.node }}
113-
uses: actions/setup-node@v4
119+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
114120
with:
115121
node-version: ${{ matrix.node }}
116122
cache: 'pnpm'
@@ -122,7 +128,7 @@ jobs:
122128
run: pnpm playwright-core install chromium
123129

124130
- name: Restore dist cache
125-
uses: actions/cache@v4
131+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
126132
with:
127133
path: packages/*/lib
128134
key: build-intlify-bundle-tools-os-${{ matrix.os }}-${{ github.sha }}

.github/workflows/nightly-release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v4
17+
- name: Checkout
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
fetch-depth: 0
1921

2022
- name: Install pnpm
21-
uses: pnpm/action-setup@v4
23+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
2224

2325
- name: Setup node
24-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2527
with:
2628
node-version: 20
2729
cache: pnpm

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
release:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Checkout codes
18-
uses: actions/checkout@v4
17+
- name: Checkout
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919
with:
2020
ref: ${{ github.head_ref }}
2121

2222
- name: Install pnpm
23-
uses: pnpm/action-setup@v4
23+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
2424

2525
- name: Setup Node
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2727
with:
2828
node-version: 20
2929

@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Extract version tag
3434
if: startsWith( github.ref, 'refs/tags/v' )
35-
uses: jungwinter/split@v2
35+
uses: jungwinter/split@397a50dadb89335ec4ef406c53105c3c4d407c63 # v2.0.0
3636
id: split
3737
with:
3838
msg: ${{ github.ref }}
@@ -49,7 +49,7 @@ jobs:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5050

5151
- name: Commit changelog
52-
uses: stefanzweifel/git-auto-commit-action@v5
52+
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
5353
with:
5454
branch: v11
5555
file_pattern: '*.md'

.github/workflows/reproduire.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
reproduire:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- name: Checkout
14+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15+
with:
16+
fetch-depth: 0
1417
- uses: Hebilicious/reproduire@4b686ae9cbb72dad60f001d278b6e3b2ce40a9ac # v0.0.9-mp
1518
with:
1619
label: 'Status: Need More Info' # Optional, will default to this value.

0 commit comments

Comments
 (0)