Skip to content

Commit 6ccd57f

Browse files
authored
Pin actions/checkout's own workflows to a known, good, stable version. (#1776)
* Pin actions/checkout's own workflows to a known, good, stable version. * fixed failing unit test * fix unit test
1 parent b17fe1e commit 6ccd57f

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/check-dist.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v4.1.6
2626

2727
- name: Set Node.js 20.x
2828
uses: actions/setup-node@v4

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v4.1.6
4343

4444
- name: Initialize CodeQL
4545
uses: github/codeql-action/init@v3

.github/workflows/licensed.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
name: Check licenses
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v4.1.6
1313
- run: npm ci
1414
- run: npm run licensed-check

.github/workflows/test.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 20.x
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v4.1.6
2323
- run: npm ci
2424
- run: npm run build
2525
- run: npm run format-check
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
# Clone this repo
3939
- name: Checkout
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v4.1.6
4141

4242
# Basic checkout
4343
- name: Checkout basic
@@ -202,7 +202,7 @@ jobs:
202202
steps:
203203
# Clone this repo
204204
- name: Checkout
205-
uses: actions/checkout@v4
205+
uses: actions/checkout@v4.1.6
206206

207207
# Basic checkout using git
208208
- name: Checkout basic
@@ -234,7 +234,7 @@ jobs:
234234
steps:
235235
# Clone this repo
236236
- name: Checkout
237-
uses: actions/checkout@v4
237+
uses: actions/checkout@v4.1.6
238238

239239
# Basic checkout using git
240240
- name: Checkout basic
@@ -264,13 +264,13 @@ jobs:
264264
steps:
265265
# Clone this repo
266266
- name: Checkout
267-
uses: actions/checkout@v4
267+
uses: actions/checkout@v4.1.6
268268
with:
269-
path: v4
269+
path: localClone
270270

271271
# Basic checkout using git
272272
- name: Checkout basic
273-
uses: ./v4
273+
uses: ./localClone
274274
with:
275275
ref: test-data/v2/basic
276276
- name: Verify basic
@@ -292,6 +292,6 @@ jobs:
292292
293293
# needed to make checkout post cleanup succeed
294294
- name: Fix Checkout v4
295-
uses: actions/checkout@v4
295+
uses: actions/checkout@v4.1.6
296296
with:
297-
path: v4
297+
path: localClone

.github/workflows/update-main-version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# Note this update workflow can also be used as a rollback tool.
2323
# For that reason, it's best to pin `actions/checkout` to a known, stable version
2424
# (typically, about two releases back).
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v4.1.6
2626
with:
2727
fetch-depth: 0
2828
- name: Git config

0 commit comments

Comments
 (0)