Skip to content

Commit 8973526

Browse files
authored
Merge pull request #8526 from hugovk/zizmor
Apply security fixes to GitHub Actions
2 parents 5771f0e + d3db931 commit 8973526

File tree

10 files changed

+28
-1
lines changed

10 files changed

+28
-1
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333

3434
steps:
3535
- uses: actions/checkout@v4
36+
with:
37+
persist-credentials: false
3638

3739
- name: Set up Python
3840
uses: actions/setup-python@v5

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2426

2527
- name: pre-commit cache
2628
uses: actions/cache@v4

.github/workflows/stale.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
issues: write
9+
contents: read
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
@@ -15,6 +15,8 @@ concurrency:
1515
jobs:
1616
stale:
1717
if: github.repository_owner == 'python-pillow'
18+
permissions:
19+
issues: write
1820

1921
runs-on: ubuntu-latest
2022

.github/workflows/test-cygwin.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
4949
- name: Checkout Pillow
5050
uses: actions/checkout@v4
51+
with:
52+
persist-credentials: false
5153

5254
- name: Install Cygwin
5355
uses: cygwin/cygwin-install-action@v4

.github/workflows/test-docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565

6666
steps:
6767
- uses: actions/checkout@v4
68+
with:
69+
persist-credentials: false
6870

6971
- name: Build system information
7072
run: python3 .github/workflows/system-info.py

.github/workflows/test-mingw.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
steps:
4747
- name: Checkout Pillow
4848
uses: actions/checkout@v4
49+
with:
50+
persist-credentials: false
4951

5052
- name: Set up shell
5153
run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH

.github/workflows/test-valgrind.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040

4141
steps:
4242
- uses: actions/checkout@v4
43+
with:
44+
persist-credentials: false
4345

4446
- name: Build system information
4547
run: python3 .github/workflows/system-info.py

.github/workflows/test-windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,20 @@ jobs:
4444
steps:
4545
- name: Checkout Pillow
4646
uses: actions/checkout@v4
47+
with:
48+
persist-credentials: false
4749

4850
- name: Checkout cached dependencies
4951
uses: actions/checkout@v4
5052
with:
53+
persist-credentials: false
5154
repository: python-pillow/pillow-depends
5255
path: winbuild\depends
5356

5457
- name: Checkout extra test images
5558
uses: actions/checkout@v4
5659
with:
60+
persist-credentials: false
5761
repository: python-pillow/test-images
5862
path: Tests\test-images
5963

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363

6464
steps:
6565
- uses: actions/checkout@v4
66+
with:
67+
persist-credentials: false
6668

6769
- name: Set up Python ${{ matrix.python-version }}
6870
uses: actions/setup-python@v5

.github/workflows/wheels.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
steps:
6262
- uses: actions/checkout@v4
6363
with:
64+
persist-credentials: false
6465
submodules: true
6566

6667
- uses: actions/setup-python@v5
@@ -132,6 +133,7 @@ jobs:
132133
steps:
133134
- uses: actions/checkout@v4
134135
with:
136+
persist-credentials: false
135137
submodules: true
136138

137139
- uses: actions/setup-python@v5
@@ -173,10 +175,13 @@ jobs:
173175
- cibw_arch: ARM64
174176
steps:
175177
- uses: actions/checkout@v4
178+
with:
179+
persist-credentials: false
176180

177181
- name: Checkout extra test images
178182
uses: actions/checkout@v4
179183
with:
184+
persist-credentials: false
180185
repository: python-pillow/test-images
181186
path: Tests\test-images
182187

@@ -253,6 +258,8 @@ jobs:
253258
runs-on: ubuntu-latest
254259
steps:
255260
- uses: actions/checkout@v4
261+
with:
262+
persist-credentials: false
256263

257264
- name: Set up Python
258265
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)