Skip to content

Commit 011f297

Browse files
authored
Merge pull request #435 from github/update-actions-checkout
update actions/checkout
2 parents fded035 + 0264c34 commit 011f297

File tree

11 files changed

+23
-23
lines changed

11 files changed

+23
-23
lines changed

.github/workflows/actions-config-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
actions-config-validation:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@v6
1818
with:
1919
persist-credentials: false
2020

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: checkout
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@v6
3030
with:
3131
persist-credentials: false
3232

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
contents: read
1313
steps:
1414
- name: checkout
15-
uses: actions/checkout@v5
15+
uses: actions/checkout@v6
1616
with:
1717
persist-credentials: false
1818

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
lint:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
with:
1717
persist-credentials: false
1818

.github/workflows/package-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1919
with:
2020
persist-credentials: false
2121

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
with:
1717
persist-credentials: false
1818

.github/workflows/update-latest-release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
tag:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v5
23+
- uses: actions/checkout@v6
2424
with:
2525
fetch-depth: 0
2626

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109

110110
# Checkout your project's repository based on the commit SHA provided by the branch-deploy step
111111
# It is important to only ever operate on the commit SHA (where possible) as commit SHA's are immutable and you know exactly what you are deploying
112-
- uses: actions/checkout@v4
112+
- uses: actions/checkout@v6
113113
with:
114114
ref: ${{ steps.branch-deploy.outputs.sha }}
115115

@@ -205,7 +205,7 @@ jobs:
205205
runs-on: ubuntu-latest
206206
steps:
207207
# Checkout your projects repository
208-
- uses: actions/checkout@v4
208+
- uses: actions/checkout@v6
209209
```
210210

211211
Sets up your `demo` job, uses an ubuntu runner, and checks out your repo - Just some standard setup for a general Action. We also add an `if:` statement here to only run this workflow on pull request comments to make it a little cleaner

docs/deploying-commit-SHAs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Instead of this:
1111

1212
- name: checkout
1313
if: steps.branch-deploy.outputs.continue == 'true'
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515
with:
1616
ref: ${{ steps.branch-deploy.outputs.ref }} # <-- This is the branch name, can be risky
1717
```
@@ -25,7 +25,7 @@ Do this:
2525

2626
- name: checkout
2727
if: steps.branch-deploy.outputs.continue == 'true'
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929
with:
3030
ref: ${{ steps.branch-deploy.outputs.sha }} # <-- uses an exact commit SHA - safe!
3131
```

docs/examples.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
uses: github/branch-deploy@vX.X.X
5858

5959
# If the branch-deploy Action was triggered, checkout our branch
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v6
6161
with:
6262
ref: ${{ steps.branch-deploy.outputs.sha }}
6363

@@ -121,7 +121,7 @@ jobs:
121121
# If the branch-deploy Action was triggered, checkout our branch
122122
- name: Checkout
123123
if: steps.branch-deploy.outputs.continue == 'true'
124-
uses: actions/checkout@v4
124+
uses: actions/checkout@v6
125125
with:
126126
ref: ${{ steps.branch-deploy.outputs.sha }}
127127
@@ -220,7 +220,7 @@ jobs:
220220
# If the branch-deploy Action was triggered, checkout our branch
221221
- name: Checkout
222222
if: steps.branch-deploy.outputs.continue == 'true'
223-
uses: actions/checkout@v4
223+
uses: actions/checkout@v6
224224
with:
225225
ref: ${{ steps.branch-deploy.outputs.sha }}
226226
@@ -273,7 +273,7 @@ jobs:
273273
# If the branch-deploy Action was triggered, checkout our branch
274274
- name: Checkout
275275
if: steps.branch-deploy.outputs.continue == 'true'
276-
uses: actions/checkout@v4
276+
uses: actions/checkout@v6
277277
with:
278278
ref: ${{ steps.branch-deploy.outputs.sha }}
279279
@@ -329,7 +329,7 @@ jobs:
329329
# If the branch-deploy Action was triggered, checkout our branch
330330
- name: Checkout
331331
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
332-
uses: actions/checkout@v4
332+
uses: actions/checkout@v6
333333
with:
334334
ref: ${{ steps.branch-deploy.outputs.sha }}
335335
@@ -384,7 +384,7 @@ jobs:
384384
# If the branch-deploy Action was triggered, checkout our branch
385385
- name: Checkout
386386
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
387-
uses: actions/checkout@v4
387+
uses: actions/checkout@v6
388388
with:
389389
ref: ${{ steps.branch-deploy.outputs.sha }}
390390
@@ -466,7 +466,7 @@ jobs:
466466
# If the branch-deploy Action was triggered, checkout our branch
467467
- name: Checkout
468468
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
469-
uses: actions/checkout@v4
469+
uses: actions/checkout@v6
470470
with:
471471
ref: ${{ steps.branch-deploy.outputs.sha }}
472472
@@ -547,7 +547,7 @@ jobs:
547547
steps:
548548
# checkout the project's repository based on the commit SHA provided by the branch-deploy step
549549
- name: checkout
550-
uses: actions/checkout@v4
550+
uses: actions/checkout@v6
551551
with:
552552
ref: ${{ needs.trigger.outputs.sha }}
553553
@@ -732,7 +732,7 @@ jobs:
732732
steps:
733733
# checkout the project's repository based on the commit SHA provided by the branch-deploy step
734734
- name: checkout
735-
uses: actions/checkout@v4
735+
uses: actions/checkout@v6
736736
with:
737737
ref: ${{ needs.trigger.outputs.sha }}
738738

@@ -970,7 +970,7 @@ jobs:
970970

971971
steps:
972972
- name: checkout
973-
uses: actions/checkout@v4
973+
uses: actions/checkout@v6
974974
with:
975975
ref: ${{ needs.trigger.outputs.sha }}
976976

@@ -1195,7 +1195,7 @@ jobs:
11951195
steps:
11961196
- name: Checkout
11971197
id: checkout
1198-
uses: actions/checkout@v4
1198+
uses: actions/checkout@v6
11991199
with:
12001200
ref: ${{ needs.start.outputs.sha }}
12011201

0 commit comments

Comments
 (0)