Skip to content

Commit 672eafe

Browse files
committed
Store credentials only when needed
1 parent bad62e5 commit 672eafe

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ jobs:
1616
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1717
with:
1818
path: main
19+
persist-credentials: false
1920

2021
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2122
with:
2223
ref: wheelhouse
2324
path: wheelhouse
25+
persist-credentials: true # Need credentials to push.
2426

2527
- name: Update external links
2628
run: |

.github/workflows/wheels.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
steps:
3737
- name: Check out repository
3838
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
39+
with:
40+
persist-credentials: false
41+
3942

4043
- name: Install uv
4144
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
@@ -92,6 +95,8 @@ jobs:
9295
steps:
9396
- name: Check out repository
9497
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
98+
with:
99+
persist-credentials: false
95100

96101
- name: Check out src
97102
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -100,6 +105,7 @@ jobs:
100105
ref: ${{ needs.meta.outputs.tag }}
101106
path: src
102107
submodules: recursive
108+
persist-credentials: false
103109

104110
- name: Prepare environment
105111
run: |
@@ -327,11 +333,13 @@ jobs:
327333
# https://github.com/actions/checkout/issues/439#issuecomment-830862188
328334
ref: main
329335
path: main
336+
persist-credentials: true # Need credentials to push.
330337

331338
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
332339
with:
333340
ref: wheelhouse
334341
path: wheelhouse
342+
persist-credentials: true # Need credentials to push.
335343

336344
- name: Create directory
337345
run: |

0 commit comments

Comments
 (0)