Skip to content

Commit c9b1424

Browse files
committed
Don't persist credentials in pypi.yml
Ref: <https://woodruffw.github.io/zizmor/audits/#artipacked>
1 parent fef0d83 commit c9b1424

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/pypi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232
submodules: true
33+
persist-credentials: false
3334

3435
- name: Build SDist
3536
run: pipx run build --sdist
@@ -54,6 +55,7 @@ jobs:
5455
- uses: actions/checkout@v4
5556
with:
5657
fetch-depth: 0
58+
persist-credentials: false
5759
- uses: hynek/build-and-inspect-python-package@v2
5860

5961
build_wheels:
@@ -73,6 +75,7 @@ jobs:
7375
- uses: actions/checkout@v4
7476
with:
7577
fetch-depth: 0
78+
persist-credentials: false
7679

7780
- name: Build wheels
7881
uses: pypa/[email protected]
@@ -98,6 +101,7 @@ jobs:
98101
- uses: actions/checkout@v4
99102
with:
100103
fetch-depth: 0
104+
persist-credentials: false
101105

102106
- name: Set up Python
103107
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)