Skip to content

Commit 97d373b

Browse files
run zizmor and adjust some workflows
1 parent 55d0841 commit 97d373b

File tree

4 files changed

+31
-9
lines changed

4 files changed

+31
-9
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131
target: ppc64le
3232
steps:
3333
- uses: actions/checkout@v4
34+
with:
35+
persist-credentials: false
3436

3537
- uses: actions/setup-python@v5
3638
with:
3739
python-version: 3.x
3840

3941
- name: Build wheels
40-
uses: PyO3/maturin-action@v1
42+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
4143
with:
4244
target: ${{ matrix.platform.target }}
4345
args: --release --out dist --find-interpreter --features extension-module
@@ -65,13 +67,15 @@ jobs:
6567
target: armv7
6668
steps:
6769
- uses: actions/checkout@v4
70+
with:
71+
persist-credentials: false
6872

6973
- uses: actions/setup-python@v5
7074
with:
7175
python-version: 3.x
7276

7377
- name: Build wheels
74-
uses: PyO3/maturin-action@v1
78+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
7579
with:
7680
target: ${{ matrix.platform.target }}
7781
args: --release --out dist --find-interpreter --features extension-module
@@ -94,14 +98,16 @@ jobs:
9498
target: x86
9599
steps:
96100
- uses: actions/checkout@v4
101+
with:
102+
persist-credentials: false
97103

98104
- uses: actions/setup-python@v5
99105
with:
100106
python-version: 3.x
101107
architecture: ${{ matrix.platform.target }}
102108

103109
- name: Build wheels
104-
uses: PyO3/maturin-action@v1
110+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
105111
with:
106112
target: ${{ matrix.platform.target }}
107113
args: --release --out dist --find-interpreter --features extension-module
@@ -124,13 +130,15 @@ jobs:
124130
target: aarch64
125131
steps:
126132
- uses: actions/checkout@v4
133+
with:
134+
persist-credentials: false
127135

128136
- uses: actions/setup-python@v5
129137
with:
130138
python-version: 3.x
131139

132140
- name: Build wheels
133-
uses: PyO3/maturin-action@v1
141+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
134142
with:
135143
target: ${{ matrix.platform.target }}
136144
args: --release --out dist --find-interpreter --features extension-module
@@ -146,9 +154,11 @@ jobs:
146154
runs-on: ubuntu-latest
147155
steps:
148156
- uses: actions/checkout@v4
157+
with:
158+
persist-credentials: false
149159

150160
- name: Build sdist
151-
uses: PyO3/maturin-action@v1
161+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
152162
with:
153163
command: sdist
154164
args: --out dist

.github/workflows/lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ jobs:
2323
runs-on: ubuntu-24.04
2424
steps:
2525
- uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
2628

2729
- name: Install uv
28-
uses: astral-sh/setup-uv@v6
30+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
2931
with:
3032
enable-cache: true
3133

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
subject-path: "wheels-*/*"
5151

5252
- name: Publish to PyPI
53-
uses: PyO3/maturin-action@v1
53+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
5454
with:
5555
command: upload
5656
args: --non-interactive --skip-existing wheels-*/*

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,22 @@ env:
2626
FORCE_COLOR: "1"
2727
PYTHONUNBUFFERED: "1"
2828

29+
permissions: {}
30+
2931
jobs:
3032
generate-matrix:
3133
runs-on: ubuntu-latest
3234
outputs:
3335
matrix: ${{ steps.set-matrix.outputs.matrix }}
36+
permissions:
37+
contents: read
3438
steps:
3539
- uses: actions/checkout@v4
40+
with:
41+
persist-credentials: false
3642

3743
- name: Install uv
38-
uses: astral-sh/setup-uv@v6
44+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
3945
with:
4046
enable-cache: true
4147

@@ -50,11 +56,15 @@ jobs:
5056
strategy:
5157
fail-fast: false
5258
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
59+
permissions:
60+
contents: read
5361
steps:
5462
- uses: actions/checkout@v4
63+
with:
64+
persist-credentials: false
5565

5666
- name: Install uv
57-
uses: astral-sh/setup-uv@v6
67+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
5868
with:
5969
enable-cache: true
6070

0 commit comments

Comments
 (0)