Skip to content

Commit 76cabd1

Browse files
committed
Pin CI actions and preserve push runs
1 parent 5267299 commit 76cabd1

3 files changed

Lines changed: 32 additions & 32 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ permissions:
1111
id-token: write
1212

1313
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
14+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
15+
cancel-in-progress: false
1616

1717
jobs:
1818
build:
1919
runs-on: ubuntu-24.04
2020
timeout-minutes: 20
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v6
23+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
2424

2525
- name: Install uv
26-
uses: astral-sh/setup-uv@v8.0.0
26+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
2727
with:
2828
version: "0.10.6"
2929

3030
- name: Set up Python
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
3232
with:
3333
python-version: "3.12"
3434

@@ -39,10 +39,10 @@ jobs:
3939
run: uv run python docs/generate.py
4040

4141
- name: Setup Pages
42-
uses: actions/configure-pages@v5
42+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
4343

4444
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v3
45+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
4646
with:
4747
path: ./docs
4848

@@ -56,4 +56,4 @@ jobs:
5656
steps:
5757
- name: Deploy to GitHub Pages
5858
id: deployment
59-
uses: actions/deploy-pages@v4
59+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ jobs:
3131
RELEASE_SHA: ${{ github.event_name == 'push' && github.sha || inputs.release_sha }}
3232
RELEASE_BRANCH: main
3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
3535
with:
3636
fetch-depth: 0
3737
ref: ${{ env.RELEASE_SHA }}
3838

39-
- uses: actions/setup-python@v6
39+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
4040
with:
4141
python-version: '3.12'
4242

43-
- uses: astral-sh/setup-uv@v8.0.0
43+
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
4444
with:
4545
version: "0.10.6"
4646
enable-cache: true

.github/workflows/tests.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ env:
1414
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
1515

1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18-
cancel-in-progress: true
17+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
18+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1919

2020
jobs:
2121
precheck:
2222
runs-on: ubuntu-24.04
2323
timeout-minutes: 20
2424

2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
2727

2828
- name: Setup Python
29-
uses: actions/setup-python@v6
29+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
3030
with:
3131
python-version: '3.12'
3232

3333
- name: Install uv
34-
uses: astral-sh/setup-uv@v8.0.0
34+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
3535
with:
3636
version: "0.10.6"
3737
enable-cache: true
@@ -57,22 +57,22 @@ jobs:
5757
timeout-minutes: 20
5858

5959
steps:
60-
- uses: actions/checkout@v6
60+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
6161

6262
- name: Setup Python
63-
uses: actions/setup-python@v6
63+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
6464
with:
6565
python-version: '3.12'
6666

6767
- name: Install uv
68-
uses: astral-sh/setup-uv@v8.0.0
68+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
6969
with:
7070
version: "0.10.6"
7171
enable-cache: true
7272
cache-dependency-glob: "pyproject.toml"
7373

7474
- name: Install Nix
75-
uses: DeterminateSystems/nix-installer-action@v22
75+
uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
7676

7777
- name: Setup venv and install pip dependencies
7878
run: |
@@ -93,7 +93,7 @@ jobs:
9393
test-files: ${{ steps.set-matrix.outputs.test-files }}
9494

9595
steps:
96-
- uses: actions/checkout@v6
96+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
9797

9898
- name: Discover standard test files
9999
id: set-matrix
@@ -141,29 +141,29 @@ jobs:
141141
test: ${{ fromJson(needs.discover-standard-tests.outputs.test-files) }}
142142

143143
steps:
144-
- uses: actions/checkout@v6
144+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
145145

146146
- name: Setup Python
147-
uses: actions/setup-python@v6
147+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
148148
with:
149149
python-version: ${{ matrix.target.python_version }}
150150

151151
- name: Install uv
152-
uses: astral-sh/setup-uv@v8.0.0
152+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
153153
with:
154154
version: "0.10.6"
155155
enable-cache: true
156156
cache-dependency-glob: "pyproject.toml"
157157

158158
- name: Install Nix
159159
if: runner.os == 'Linux'
160-
uses: DeterminateSystems/nix-installer-action@v22
160+
uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
161161
with:
162162
start-daemon: true
163163

164164
- name: Install Nix
165165
if: runner.os != 'Linux'
166-
uses: DeterminateSystems/nix-installer-action@v22
166+
uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
167167

168168
- name: Setup venv and install pip dependencies
169169
run: |
@@ -204,7 +204,7 @@ jobs:
204204
live-tests: ${{ steps.set-matrix.outputs.live-tests }}
205205

206206
steps:
207-
- uses: actions/checkout@v6
207+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
208208

209209
- name: Discover live integration test files
210210
id: set-matrix
@@ -257,29 +257,29 @@ jobs:
257257
live: ${{ fromJson(needs.discover-live-tests.outputs.live-tests) }}
258258

259259
steps:
260-
- uses: actions/checkout@v6
260+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
261261

262262
- name: Setup Python
263-
uses: actions/setup-python@v6
263+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
264264
with:
265265
python-version: '3.12'
266266

267267
- name: Install uv
268-
uses: astral-sh/setup-uv@v8.0.0
268+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
269269
with:
270270
version: "0.10.6"
271271
enable-cache: true
272272
cache-dependency-glob: "pyproject.toml"
273273

274274
- name: Install Nix
275275
if: runner.os == 'Linux'
276-
uses: DeterminateSystems/nix-installer-action@v22
276+
uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
277277
with:
278278
start-daemon: true
279279

280280
- name: Install Nix
281281
if: runner.os != 'Linux'
282-
uses: DeterminateSystems/nix-installer-action@v22
282+
uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
283283

284284
- name: Setup venv and install pip dependencies
285285
run: |

0 commit comments

Comments
 (0)