Skip to content

Commit e58fa2a

Browse files
committed
ci: update the pinned actions to their current releases
Moves the SHA-pinned actions in the workflows up to the latest tags: checkout v7, setup-node v6, github-script v9, upload-artifact v7, download-artifact v8. The old pins still ran on Node 20, which the runners now warn about on every job, so this also clears that noise. I went through the changelogs against how we actually use each one. None of the breaking changes land here: we have no pull_request_target or workflow_run workflows, so checkout v7 dropping fork-PR checkout does not apply; the github-script steps use the injected github and context objects rather than the require() that v9 removes; setup-node already passes cache: yarn explicitly and there is no packageManager field, so the v6 auto-cache change is moot; and every artifact step uploads and downloads by name and path, which v7 and v8 leave alone. releasepr.yml is left out on purpose, its actions move in the gh pr change instead. Note: AI-assisted (Claude Code). Manually verified: changelogs read against the workflows' usage, YAML parses, pins resolve to the latest tags.
1 parent 661c576 commit e58fa2a

5 files changed

Lines changed: 27 additions & 27 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
# on CI runners, so skip it and install the binary deterministically below.
3333
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
3434
steps:
35-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
36-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
35+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
36+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
3737
with:
3838
# Match the Node that the target Electron bundles (Electron 42 -> Node
3939
# 24); do not run ahead of it. Node 26 broke Electron's install tooling.
@@ -92,7 +92,7 @@ jobs:
9292
else
9393
yarn test:e2e
9494
fi
95-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
95+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
9696
if: ${{ !cancelled() }}
9797
with:
9898
name: playwright-report-${{ matrix.os }}

.github/workflows/prerelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
14+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
1515

1616
- name: Get package info
1717
shell: bash
1818
id: package-info
1919
run: echo "version=$(python scripts/get_package_version.py)" >> $GITHUB_OUTPUT
2020

2121
- name: 'Find Release with tag v${{ steps.package-info.outputs.version}}'
22-
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
22+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
2323
id: release-exists
2424
env:
2525
APP_VERSION: ${{ steps.package-info.outputs.version}}

.github/workflows/publish.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
permissions:
2121
contents: read
2222
steps:
23-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
24-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
23+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
24+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2525
with:
2626
node-version: '24.x'
2727
cache: 'yarn'
@@ -46,7 +46,7 @@ jobs:
4646
shell: bash -el {0}
4747

4848
steps:
49-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
49+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
5050
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3
5151
with:
5252
auto-update-conda: true
@@ -57,7 +57,7 @@ jobs:
5757
- run: conda install --file ./workflow_env/conda-${{ matrix.cfg.build_platform }}.lock -y
5858

5959
- name: Install node
60-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
60+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
6161
with:
6262
node-version: '24.x'
6363
cache: 'yarn'
@@ -81,7 +81,7 @@ jobs:
8181
run: echo "version=$(python scripts/get_package_version.py)" >> $GITHUB_OUTPUT
8282

8383
- name: 'Find Release with tag v${{ steps.package-info.outputs.version}}'
84-
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
84+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
8585
id: release-exists
8686
env:
8787
APP_VERSION: ${{ steps.package-info.outputs.version}}
@@ -154,23 +154,23 @@ jobs:
154154

155155
- name: Upload Debian x64 Installer
156156
if: matrix.cfg.platform == 'linux-64'
157-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
157+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
158158
with:
159159
name: debian-installer-x64
160160
path: |
161161
dist/JupyterLab.deb
162162
163163
- name: Upload Fedora x64 Installer
164164
if: matrix.cfg.platform == 'linux-64'
165-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
165+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
166166
with:
167167
name: fedora-installer-x64
168168
path: |
169169
dist/JupyterLab.rpm
170170
171171
- name: Upload Snap Installer
172172
if: matrix.cfg.platform == 'linux-64'
173-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
173+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
174174
id: snap-artifact
175175
with:
176176
name: snap-installer
@@ -179,23 +179,23 @@ jobs:
179179
180180
- name: Upload macOS x64 Installer
181181
if: matrix.cfg.platform == 'osx-64'
182-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
182+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
183183
with:
184184
name: mac-installer-x64
185185
path: |
186186
dist/JupyterLab-x64.dmg
187187
188188
- name: Upload macOS arm64 Installer
189189
if: matrix.cfg.platform == 'osx-arm64'
190-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
190+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
191191
with:
192192
name: mac-installer-arm64
193193
path: |
194194
dist/JupyterLab-arm64.dmg
195195
196196
- name: Upload Windows x64 Installer
197197
if: matrix.cfg.platform == 'win-64'
198-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
198+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
199199
with:
200200
name: windows-installer-x64
201201
path: |

.github/workflows/sync_lab_release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
app-id: ${{ vars.APP_ID }}
2525
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2626

27-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
27+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2828

2929
- name: Set up Python
3030
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Get latest JupyterLab version
3838
id: get-latest-jupyterlab-version
39-
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
39+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
4040
with:
4141
github-token: ${{ steps.app-token.outputs.token }}
4242
script: |
@@ -61,7 +61,7 @@ jobs:
6161
fi
6262
6363
- name: Upload updated version spec files
64-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
64+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
6565
if: steps.check-update.outputs.update_available == 'true'
6666
with:
6767
name: updated-version-info
@@ -82,16 +82,16 @@ jobs:
8282
permissions:
8383
contents: read
8484
steps:
85-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
85+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
8686

8787
- name: Download updated version info
88-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
88+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
8989
with:
9090
name: updated-version-info
9191
path: .
9292

9393
- name: Install Node
94-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
94+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
9595
with:
9696
node-version: '24.x'
9797

@@ -134,7 +134,7 @@ jobs:
134134
done
135135
136136
- name: Upload updated repo as artifact
137-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
137+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
138138
with:
139139
name: updated-repo
140140
path: changed-files/
@@ -155,12 +155,12 @@ jobs:
155155
app-id: ${{ vars.APP_ID }}
156156
private-key: ${{ secrets.APP_PRIVATE_KEY }}
157157

158-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
158+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
159159
with:
160160
token: ${{ steps.app-token.outputs.token }}
161161

162162
- name: Download updated lock files and sign lists
163-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
163+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
164164
with:
165165
name: updated-repo
166166
path: .

.github/workflows/typecheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 10
2121
steps:
22-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
23-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
22+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
23+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2424
with:
2525
# Match the Node that the target Electron bundles (Electron 42 -> Node 24).
2626
node-version: '24.x'

0 commit comments

Comments
 (0)