Skip to content

Commit 58b2a94

Browse files
committed
Set 'persist-credentials' to false
1 parent 15b46dc commit 58b2a94

File tree

7 files changed

+45
-1
lines changed

7 files changed

+45
-1
lines changed

.github/workflows/builddoc.yml

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

2323
steps:
2424
- uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
2527
- name: Set up Python
2628
uses: actions/setup-python@v5
2729
with:

.github/workflows/create-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
id-token: write # for PyPI trusted publishing
2929
steps:
3030
- uses: actions/checkout@v4
31+
with:
32+
persist-credentials: false
3133
- name: Set up Python
3234
uses: actions/setup-python@v5
3335
with:
@@ -97,7 +99,7 @@ jobs:
9799
headers: {Authorization: `bearer ${oidc_request_token}`},
98100
});
99101
const oidc_token = (await oidc_resp.json()).value;
100-
102+
101103
// exchange the OIDC token for an API token
102104
const mint_resp = await fetch('https://pypi.org/_/oidc/github/mint-token', {
103105
method: 'post',
@@ -127,6 +129,8 @@ jobs:
127129
contents: write # for softprops/action-gh-release to create GitHub release
128130
steps:
129131
- uses: actions/checkout@v4
132+
with:
133+
persist-credentials: false
130134
- name: Get release version
131135
id: get_version
132136
uses: actions/github-script@v7

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v4
27+
with:
28+
persist-credentials: false
2729
- name: Get Ruff version from pyproject.toml
2830
run: |
2931
RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
@@ -48,6 +50,8 @@ jobs:
4850

4951
steps:
5052
- uses: actions/checkout@v4
53+
with:
54+
persist-credentials: false
5155
- name: Set up Python
5256
uses: actions/setup-python@v5
5357
with:
@@ -68,6 +72,8 @@ jobs:
6872

6973
steps:
7074
- uses: actions/checkout@v4
75+
with:
76+
persist-credentials: false
7177
- name: Set up Python
7278
uses: actions/setup-python@v5
7379
with:
@@ -88,6 +94,8 @@ jobs:
8894

8995
steps:
9096
- uses: actions/checkout@v4
97+
with:
98+
persist-credentials: false
9199
- name: Set up Python
92100
uses: actions/setup-python@v5
93101
with:
@@ -108,6 +116,8 @@ jobs:
108116

109117
steps:
110118
- uses: actions/checkout@v4
119+
with:
120+
persist-credentials: false
111121
- name: Set up Python
112122
uses: actions/setup-python@v5
113123
with:
@@ -128,6 +138,8 @@ jobs:
128138

129139
steps:
130140
- uses: actions/checkout@v4
141+
with:
142+
persist-credentials: false
131143
- name: Set up Python
132144
uses: actions/setup-python@v5
133145
with:

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747

4848
steps:
4949
- uses: actions/checkout@v4
50+
with:
51+
persist-credentials: false
5052
- name: Set up Python ${{ matrix.python }}
5153
uses: actions/setup-python@v5
5254
with:
@@ -85,6 +87,8 @@ jobs:
8587

8688
steps:
8789
- uses: actions/checkout@v4
90+
with:
91+
persist-credentials: false
8892
- name: Set up Python ${{ matrix.python }} (deadsnakes)
8993
uses: deadsnakes/[email protected]
9094
with:
@@ -117,6 +121,8 @@ jobs:
117121

118122
steps:
119123
- uses: actions/checkout@v4
124+
with:
125+
persist-credentials: false
120126
- name: Set up Python ${{ matrix.python }} (deadsnakes)
121127
uses: deadsnakes/[email protected]
122128
with:
@@ -150,6 +156,8 @@ jobs:
150156

151157
steps:
152158
- uses: actions/checkout@v4
159+
with:
160+
persist-credentials: false
153161
- name: Set up Python ${{ matrix.python }} (deadsnakes)
154162
uses: deadsnakes/[email protected]
155163
with:
@@ -179,6 +187,8 @@ jobs:
179187

180188
steps:
181189
- uses: actions/checkout@v4
190+
with:
191+
persist-credentials: false
182192
- name: Set up Python
183193
uses: actions/setup-python@v5
184194
with:
@@ -211,6 +221,8 @@ jobs:
211221
wget --no-verbose https://github.com/w3c/epubcheck/releases/download/v${EPUBCHECK_VERSION}/epubcheck-${EPUBCHECK_VERSION}.zip
212222
unzip epubcheck-${EPUBCHECK_VERSION}.zip
213223
- uses: actions/checkout@v4
224+
with:
225+
persist-credentials: false
214226
- name: Set up Python
215227
uses: actions/setup-python@v5
216228
with:
@@ -243,6 +255,8 @@ jobs:
243255

244256
steps:
245257
- uses: actions/checkout@v4
258+
with:
259+
persist-credentials: false
246260
- name: Set up Python
247261
uses: actions/setup-python@v5
248262
with:
@@ -275,6 +289,8 @@ jobs:
275289

276290
steps:
277291
- uses: actions/checkout@v4
292+
with:
293+
persist-credentials: false
278294
- name: Set up Python
279295
uses: actions/setup-python@v5
280296
with:
@@ -303,6 +319,8 @@ jobs:
303319

304320
steps:
305321
- uses: actions/checkout@v4
322+
with:
323+
persist-credentials: false
306324
- name: Set up Python
307325
uses: actions/setup-python@v5
308326
with:

.github/workflows/nodejs.yml

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

3535
steps:
3636
- uses: actions/checkout@v4
37+
with:
38+
persist-credentials: false
3739
- name: Use Node.js ${{ env.node-version }}
3840
uses: actions/setup-node@v4
3941
with:

.github/workflows/transifex.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
1921
- name: Set up Python
2022
uses: actions/setup-python@v5
2123
with:
@@ -45,6 +47,8 @@ jobs:
4547

4648
steps:
4749
- uses: actions/checkout@v4
50+
with:
51+
persist-credentials: false
4852
- name: Set up Python
4953
uses: actions/setup-python@v5
5054
with:

doc/tutorial/deploying.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ contents:
188188
contents: write
189189
steps:
190190
- uses: actions/checkout@v4
191+
with:
192+
persist-credentials: false
191193
- name: Build HTML
192194
uses: ammaraskar/sphinx-action@master
193195
- name: Upload artifacts

0 commit comments

Comments
 (0)