Skip to content

Commit 9eb3387

Browse files
authored
Merge pull request #1017 from minrk/zizmor
add zizmor config
2 parents a343c94 + cffbe87 commit 9eb3387

9 files changed

Lines changed: 62 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@ concurrency:
1818
${{ github.event.pull_request.number || github.sha }}
1919
cancel-in-progress: true
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
build-release:
23-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-24.04
2427
steps:
25-
- uses: actions/checkout@v6
26-
- uses: actions/setup-python@v6
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
29+
with:
30+
persist-credentials: false
31+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2732
with:
28-
python-version: 3.11
29-
cache: pip
33+
python-version: "3.13"
3034

3135
- name: install build package
3236
run: |
@@ -50,7 +54,7 @@ jobs:
5054
jupyter server extension list 2>&1 | grep ipyparallel
5155
5256
# ref: https://github.com/actions/upload-artifact#readme
53-
- uses: actions/upload-artifact@v7
57+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
5458
with:
5559
name: ipyparallel-${{ github.sha }}
5660
path: "dist/*"
@@ -60,14 +64,14 @@ jobs:
6064
permissions:
6165
id-token: write
6266
environment: release
63-
runs-on: ubuntu-22.04
67+
runs-on: ubuntu-24.04
6468
if: startsWith(github.ref, 'refs/tags/')
6569
needs:
6670
- build-release
6771
steps:
68-
- uses: actions/download-artifact@v8
72+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
6973
with:
7074
path: dist
7175
merge-multiple: true
7276
- name: Publish wheels to PyPI
73-
uses: pypa/gh-action-pypi-publish@release/v1
77+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0

.github/workflows/test-docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- "**"
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
env:
1417
# UTF-8 content may be interpreted as ascii and causes errors without this.
1518
LANG: C.UTF-8
@@ -24,6 +27,7 @@ jobs:
2427
# make rediraffecheckdiff requires git history to compare current
2528
# commit with the main branch and previous releases.
2629
fetch-depth: 0
30+
persist-credentials: false
2731

2832
- uses: actions/setup-python@v6
2933
with:
@@ -54,7 +58,7 @@ jobs:
5458
if: github.event_name == 'pull_request'
5559
run: |
5660
cd docs
57-
export REDIRAFFE_BRANCH=origin/${{ github.base_ref }}
61+
export REDIRAFFE_BRANCH=origin/${GITHUB_BASE_REF}
5862
make rediraffecheckdiff
5963
6064
# this should check currently published 'stable' links for redirects

.github/workflows/test-ssh.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ concurrency:
2727
${{ github.event.pull_request.number || github.sha }}
2828
cancel-in-progress: true
2929

30+
permissions:
31+
contents: read
32+
3033
env:
3134
# UTF-8 content may be interpreted as ascii and causes errors without this.
3235
LANG: C.UTF-8
@@ -49,6 +52,8 @@ jobs:
4952

5053
steps:
5154
- uses: actions/checkout@v6
55+
with:
56+
persist-credentials: false
5257

5358
- name: Get Docker infos
5459
run: |

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ concurrency:
1414
${{ github.event.pull_request.number || github.sha }}
1515
cancel-in-progress: true
1616

17+
permissions:
18+
contents: read
19+
1720
env:
1821
# UTF-8 content may be interpreted as ascii and causes errors without this.
1922
LANG: C.UTF-8
@@ -51,6 +54,8 @@ jobs:
5154

5255
steps:
5356
- uses: actions/checkout@v6
57+
with:
58+
persist-credentials: false
5459

5560
- name: Cache conda environment
5661
uses: actions/cache@v5

.github/workflows/windows-ssh-image.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout repository
2222
uses: actions/checkout@v6
23+
with:
24+
persist-credentials: false
2325

2426
- name: Log in to the Container registry
2527
uses: docker/login-action@v4

.pre-commit-config.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
# than ruff itself
2525
# but has trouble with isort rules
2626
- repo: https://github.com/nbQA-dev/nbQA
27-
rev: f96ec7f3b26a32619435686eb5813235f7e3327e # frozen: 1.9.1
27+
rev: d31b7eae1767c43460afb3ba130e0a6602933abe # frozen: 1.9.1
2828
hooks:
2929
- id: nbqa-ruff-format
3030
- id: nbqa-ruff-check
@@ -36,6 +36,19 @@ repos:
3636
rev: 515f543f5718ebfd6ce22e16708bb32c68ff96e1 # frozen: v3.8.3
3737
hooks:
3838
- id: prettier
39+
40+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
41+
rev: a4727cbbcd26d7098e96b9cb738169b59711ae51 # frozen: v1.24.1
42+
hooks:
43+
- id: zizmor
44+
args:
45+
- --fix=all
46+
- id: zizmor
47+
args:
48+
- --fix=all
49+
- --config=zizmor-strict.yaml
50+
files: .github/workflows/release.yml
51+
3952
- repo: https://github.com/pre-commit/pre-commit-hooks
4053
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
4154
hooks:

docs/source/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Changes in IPython Parallel
66

77
## 9.1
88

9+
### 9.2.0 - 2026-05
10+
11+
9.2.0 updates JupyterLab extension dependencies and removes some use of deprecated APIs in ipykernel.
12+
13+
([full changelog](https://github.com/ipython/ipyparallel/compare/9.1.0...9.2.0))
14+
915
### 9.1.0 - 2026-03
1016

1117
9.1.0 introduces a new task labeling feature for filtering task results (Thanks, @ottointhesky!).

zizmor-strict.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# separate zizmor config for workflows with
2+
# default
3+
rules:
4+
unpinned-uses:
5+
config:
6+
policies:
7+
"*": hash-pin

zizmor.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
"*": ref-pin

0 commit comments

Comments
 (0)