Skip to content

Commit 8caaf95

Browse files
authored
Merge pull request #2687 from ViewComponent/joelhawksley-update-actions-checkout-v7
Update actions/checkout to v7
2 parents ec4b7ac + 820df0f commit 8caaf95

7 files changed

Lines changed: 43 additions & 17 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
env:
1717
BUNDLE_GEMFILE: gemfiles/rails_8.1.gemfile
1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
20+
with:
21+
persist-credentials: false
2022
- name: Setup Ruby
2123
uses: ruby/setup-ruby@v1
2224
with:
@@ -49,7 +51,9 @@ jobs:
4951
env:
5052
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails_version }}.gemfile
5153
steps:
52-
- uses: actions/checkout@v5
54+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
55+
with:
56+
persist-credentials: false
5357
- name: Setup Ruby
5458
uses: ruby/setup-ruby@v1
5559
with:
@@ -73,14 +77,16 @@ jobs:
7377
name: Test compatibility with Primer ViewComponents (main)
7478
runs-on: ubuntu-latest
7579
steps:
76-
- uses: actions/checkout@v5
80+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
7781
with:
7882
repository: 'primer/view_components'
7983
path: 'primer_view_components'
8084
ref: 'main'
81-
- uses: actions/checkout@v5
85+
persist-credentials: false
86+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
8287
with:
8388
path: 'view_component'
89+
persist-credentials: false
8490
- name: Setup Ruby
8591
uses: ruby/setup-ruby@v1
8692
with:
@@ -106,7 +112,9 @@ jobs:
106112
needs: test
107113
runs-on: ubuntu-latest
108114
steps:
109-
- uses: actions/checkout@v5
115+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
116+
with:
117+
persist-credentials: false
110118
- name: Setup Ruby
111119
uses: ruby/setup-ruby@v1
112120
with:

‎.github/workflows/lint.yml‎

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v5
13+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
14+
with:
15+
persist-credentials: false
1416
- name: Check for trailing whitespace
1517
uses: raisedevs/find-trailing-whitespace@restrict-to-plaintext-only
1618
- name: Check for merge conflicts
@@ -24,15 +26,19 @@ jobs:
2426
runs-on: ubuntu-latest
2527
steps:
2628
- name: Checkout
27-
uses: actions/checkout@v5
29+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
30+
with:
31+
persist-credentials: false
2832
- name: Vale
2933
uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c
3034
env:
3135
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3236
markdown:
3337
runs-on: ubuntu-latest
3438
steps:
35-
- uses: actions/checkout@v5
39+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
40+
with:
41+
persist-credentials: false
3642
- uses: avto-dev/markdown-lint@v1
3743
with:
3844
config: '.github/lint/markdown.json'
@@ -46,9 +52,10 @@ jobs:
4652
steps:
4753
# Make sure we have some code to diff.
4854
- name: Checkout repository
49-
uses: actions/checkout@v5
55+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
5056
with:
5157
fetch-depth: 0
58+
persist-credentials: false
5259
- name: Get changed files
5360
id: changes
5461
# Set outputs using the command.
@@ -74,7 +81,9 @@ jobs:
7481
lint:
7582
runs-on: ubuntu-latest
7683
steps:
77-
- uses: actions/checkout@v5
84+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
85+
with:
86+
persist-credentials: false
7887
- name: Setup Ruby
7988
uses: ruby/setup-ruby@v1
8089
with:
@@ -94,9 +103,10 @@ jobs:
94103
yard-lint:
95104
runs-on: ubuntu-latest
96105
steps:
97-
- uses: actions/checkout@v5
106+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
98107
with:
99108
fetch-depth: 0
109+
persist-credentials: false
100110
- name: Setup Ruby
101111
uses: ruby/setup-ruby@v1
102112
with:
@@ -107,7 +117,9 @@ jobs:
107117
audition:
108118
runs-on: ubuntu-latest
109119
steps:
110-
- uses: actions/checkout@v5
120+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
121+
with:
122+
persist-credentials: false
111123
- name: Setup Ruby
112124
uses: ruby/setup-ruby@v1
113125
with:

‎.github/workflows/publish-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Only run if this is a release commit (created by script/release)
2020
if: startsWith(github.event.head_commit.message, 'release ')
2121
steps:
22-
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
22+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
2323
with:
2424
fetch-depth: 0
2525
token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/push_gem.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
with:
2828
egress-policy: audit
2929

30-
- uses: actions/checkout@v5
30+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
31+
with:
32+
persist-credentials: false
3133
- name: Set up Ruby
3234
uses: ruby/setup-ruby@v1
3335
with:

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
current-patch: ${{ steps.current-version.outputs.patch }}
6464
current-pre: ${{ steps.current-version.outputs.pre }}
6565
steps:
66-
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
66+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
6767
with:
6868
persist-credentials: false
6969

@@ -105,7 +105,7 @@ jobs:
105105
contents: write
106106
pull-requests: write
107107
steps:
108-
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
108+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
109109
with:
110110
fetch-depth: 0
111111
token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/zizmor.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
security-events: write
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
2020
with:
2121
persist-credentials: false
2222
- name: Run zizmor

‎docs/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ nav_order: 6
1010

1111
## main
1212

13+
* Update GitHub Actions workflows to use `actions/checkout` v7.
14+
15+
*Richard Macklin*
16+
1317
## 4.13.0
1418

1519
* Add support for Turbo-streaming ViewComponents.

0 commit comments

Comments
 (0)