You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Changelog
2
2
3
+
## v7.0.0
4
+
* Block checking out fork PR for pull_request_target and workflow_run by @aiqiaoy in https://github.com/actions/checkout/pull/2454
5
+
* Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the minor-actions-dependencies group across 1 directory by @dependabot[bot] in https://github.com/actions/checkout/pull/2458
6
+
* Bump flatted from 3.3.1 to 3.4.2 by @dependabot[bot] in https://github.com/actions/checkout/pull/2460
7
+
* Bump js-yaml from 4.1.0 to 4.2.0 by @dependabot[bot] in https://github.com/actions/checkout/pull/2461
8
+
* Bump @actions/core and @actions/tool-cache and Remove uuid by @dependabot[bot] in https://github.com/actions/checkout/pull/2459
9
+
* upgrade module to esm and update dependencies by @aiqiaoy in https://github.com/actions/checkout/pull/2463
10
+
* Bump the minor-npm-dependencies group across 1 directory with 3 updates by @dependabot[bot] in https://github.com/actions/checkout/pull/2462
11
+
3
12
## v6.0.3
4
13
* Fix checkout init for SHA-256 repositories by @yaananth in https://github.com/actions/checkout/pull/2439
5
14
* fix: expand merge commit SHA regex and add SHA-256 test cases by @yaananth in https://github.com/actions/checkout/pull/2414
Copy file name to clipboardExpand all lines: README.md
+26-18Lines changed: 26 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
[](https://github.com/actions/checkout/actions/workflows/test.yml)
2
2
3
+
# Checkout v7
4
+
5
+
## What's new
6
+
7
+
- Safer fork pull request handling: checkout now refuses to check out fork pull request code by default when the workflow is triggered by `pull_request_target` or `workflow_run`. These triggers run with the base repository's `GITHUB_TOKEN`, secrets, and runner access, where executing a fork's code commonly leads to "pwn request" vulnerabilities.
8
+
- To opt in after [reviewing the risks](https://gh.io/securely-using-pull_request_target), set the new `allow-unsafe-pr-checkout: true` input.
9
+
- Migrated `actions/checkout` to ESM to support new versions of the `@actions/*` packages.
10
+
- Updated direct and transitive dependencies, including security fixes for known vulnerabilities.
11
+
3
12
# Checkout v6
4
13
5
14
## What's new
@@ -15,7 +24,6 @@
15
24
- Updated to the node24 runtime
16
25
- This requires a minimum Actions Runner version of [v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) to run.
17
26
18
-
19
27
# Checkout v4
20
28
21
29
This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it.
@@ -52,7 +60,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
52
60
53
61
<!-- start usage -->
54
62
```yaml
55
-
- uses: actions/checkout@v6
63
+
- uses: actions/checkout@v7
56
64
with:
57
65
# Repository name with owner. For example, actions/checkout
58
66
# Default: ${{ github.repository }}
@@ -200,15 +208,15 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
200
208
## Fetch only the root files
201
209
202
210
```yaml
203
-
- uses: actions/checkout@v6
211
+
- uses: actions/checkout@v7
204
212
with:
205
213
sparse-checkout: .
206
214
```
207
215
208
216
## Fetch only the root files and `.github` and `src` folder
209
217
210
218
```yaml
211
-
- uses: actions/checkout@v6
219
+
- uses: actions/checkout@v7
212
220
with:
213
221
sparse-checkout: |
214
222
.github
@@ -218,7 +226,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
218
226
## Fetch only a single file
219
227
220
228
```yaml
221
-
- uses: actions/checkout@v6
229
+
- uses: actions/checkout@v7
222
230
with:
223
231
sparse-checkout: |
224
232
README.md
@@ -228,23 +236,23 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
228
236
## Fetch all history for all tags and branches
229
237
230
238
```yaml
231
-
- uses: actions/checkout@v6
239
+
- uses: actions/checkout@v7
232
240
with:
233
241
fetch-depth: 0
234
242
```
235
243
236
244
## Checkout a different branch
237
245
238
246
```yaml
239
-
- uses: actions/checkout@v6
247
+
- uses: actions/checkout@v7
240
248
with:
241
249
ref: my-branch
242
250
```
243
251
244
252
## Checkout HEAD^
245
253
246
254
```yaml
247
-
- uses: actions/checkout@v6
255
+
- uses: actions/checkout@v7
248
256
with:
249
257
fetch-depth: 2
250
258
- run: git checkout HEAD^
@@ -254,12 +262,12 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
254
262
255
263
```yaml
256
264
- name: Checkout
257
-
uses: actions/checkout@v6
265
+
uses: actions/checkout@v7
258
266
with:
259
267
path: main
260
268
261
269
- name: Checkout tools repo
262
-
uses: actions/checkout@v6
270
+
uses: actions/checkout@v7
263
271
with:
264
272
repository: my-org/my-tools
265
273
path: my-tools
@@ -270,10 +278,10 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
270
278
271
279
```yaml
272
280
- name: Checkout
273
-
uses: actions/checkout@v6
281
+
uses: actions/checkout@v7
274
282
275
283
- name: Checkout tools repo
276
-
uses: actions/checkout@v6
284
+
uses: actions/checkout@v7
277
285
with:
278
286
repository: my-org/my-tools
279
287
path: my-tools
@@ -284,12 +292,12 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
284
292
285
293
```yaml
286
294
- name: Checkout
287
-
uses: actions/checkout@v6
295
+
uses: actions/checkout@v7
288
296
with:
289
297
path: main
290
298
291
299
- name: Checkout private tools
292
-
uses: actions/checkout@v6
300
+
uses: actions/checkout@v7
293
301
with:
294
302
repository: my-org/my-private-tools
295
303
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT
@@ -302,7 +310,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
302
310
## Checkout pull request HEAD commit instead of merge commit
303
311
304
312
```yaml
305
-
- uses: actions/checkout@v6
313
+
- uses: actions/checkout@v7
306
314
with:
307
315
ref: ${{ github.event.pull_request.head.sha }}
308
316
```
@@ -318,7 +326,7 @@ jobs:
318
326
build:
319
327
runs-on: ubuntu-latest
320
328
steps:
321
-
- uses: actions/checkout@v6
329
+
- uses: actions/checkout@v7
322
330
```
323
331
324
332
## Push a commit using the built-in token
@@ -329,7 +337,7 @@ jobs:
329
337
build:
330
338
runs-on: ubuntu-latest
331
339
steps:
332
-
- uses: actions/checkout@v6
340
+
- uses: actions/checkout@v7
333
341
- run: |
334
342
date > generated.txt
335
343
# Note: the following account information will not work on GHES
0 commit comments