Skip to content

Commit 7bd93f8

Browse files
authored
Don't persist credentials when checking out repositories (#7353)
1 parent 4095773 commit 7bd93f8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: pip install wheel
5959
- uses: actions/checkout@v5
6060
with:
61-
fetch-depth: 1
61+
persist-credentials: false
6262
- name: Fake a Planemo run to update cache and determine commit range, repositories, and chunks
6363
uses: galaxyproject/planemo-ci-action@v1
6464
id: discover
@@ -86,7 +86,7 @@ jobs:
8686
steps:
8787
- uses: actions/checkout@v5
8888
with:
89-
fetch-depth: 1
89+
persist-credentials: false
9090
- uses: actions/setup-python@v6
9191
with:
9292
python-version: ${{ matrix.python-version }}
@@ -132,11 +132,9 @@ jobs:
132132
ports:
133133
- 5432:5432
134134
steps:
135-
# checkout the repository
136-
# and use it as the current working directory
137135
- uses: actions/checkout@v5
138136
with:
139-
fetch-depth: 1
137+
persist-credentials: false
140138
- uses: actions/setup-python@v6
141139
with:
142140
python-version: ${{ matrix.python-version }}

.github/workflows/pr.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
- uses: actions/checkout@v5
8282
with:
8383
fetch-depth: 0
84+
persist-credentials: false
8485
- name: Fake a Planemo run to update cache and determine commit range, repositories, and chunks
8586
uses: galaxyproject/planemo-ci-action@v1
8687
id: discover
@@ -113,7 +114,7 @@ jobs:
113114
steps:
114115
- uses: actions/checkout@v5
115116
with:
116-
fetch-depth: 1
117+
persist-credentials: false
117118
- uses: actions/setup-python@v6
118119
with:
119120
python-version: ${{ matrix.python-version }}
@@ -160,7 +161,7 @@ jobs:
160161
steps:
161162
- uses: actions/checkout@v5
162163
with:
163-
fetch-depth: 1
164+
persist-credentials: false
164165
- uses: actions/setup-python@v6
165166
with:
166167
python-version: ${{ matrix.python-version }}
@@ -192,7 +193,7 @@ jobs:
192193
steps:
193194
- uses: actions/checkout@v5
194195
with:
195-
fetch-depth: 1
196+
persist-credentials: false
196197
- uses: r-lib/actions/setup-r@v2
197198
with:
198199
r-version: ${{ matrix.r-version }}
@@ -228,6 +229,7 @@ jobs:
228229
- uses: actions/checkout@v5
229230
with:
230231
fetch-depth: 0
232+
persist-credentials: false
231233
- name: Check file sizes
232234
run: |
233235
touch file_size_report.txt
@@ -270,7 +272,7 @@ jobs:
270272
steps:
271273
- uses: actions/checkout@v5
272274
with:
273-
fetch-depth: 1
275+
persist-credentials: false
274276
- uses: actions/setup-python@v6
275277
with:
276278
python-version: ${{ matrix.python-version }}
@@ -372,7 +374,7 @@ jobs:
372374
steps:
373375
- uses: actions/checkout@v5
374376
with:
375-
fetch-depth: 1
377+
persist-credentials: false
376378
- uses: actions/setup-python@v6
377379
with:
378380
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)