Skip to content

Commit 19f50cb

Browse files
committed
Add persist-credentials: false to all checkout GHAs
1 parent f1b8c7b commit 19f50cb

File tree

8 files changed

+22
-6
lines changed

8 files changed

+22
-6
lines changed

.github/workflows/ci_pip.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 1
30+
persist-credentials: false
3031

3132
- name: Set up Python ${{ matrix.python-version }}
3233
uses: actions/setup-python@v5
@@ -60,6 +61,7 @@ jobs:
6061
- uses: actions/checkout@v4
6162
with:
6263
fetch-depth: 1
64+
persist-credentials: false
6365

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

.github/workflows/ci_poetry.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 1
24+
persist-credentials: false
2425

2526
- name: Install poetry
2627
run: pipx install poetry==1.8.2
@@ -66,6 +67,7 @@ jobs:
6667
- uses: actions/checkout@v4
6768
with:
6869
fetch-depth: 1
70+
persist-credentials: false
6971

7072
- name: Install poetry
7173
run: pipx install poetry==1.8.2
@@ -123,6 +125,8 @@ jobs:
123125
needs: [tests_core, tests_tasks]
124126
steps:
125127
- uses: actions/checkout@v4
128+
with:
129+
persist-credentials: false
126130

127131
- run: pipx install poetry==1.8.2
128132
- run: poetry config virtualenvs.in-project true

.github/workflows/documentation.yaml

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

1616
steps:
1717
- uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
1820

1921
- name: Deploy docs
2022
uses: mhausenblas/mkdocs-deploy-gh-pages@master
@@ -29,6 +31,8 @@ jobs:
2931

3032
steps:
3133
- uses: actions/checkout@v4
34+
with:
35+
persist-credentials: false
3236

3337
- uses: actions/setup-python@v5
3438
with:

.github/workflows/manifest_external_packages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
with:
7575
repository: ${{ matrix.github_repo }}
7676
ref: ${{ matrix.github_branch }}
77+
persist-credentials: false
7778

7879
- uses: actions/setup-python@v5
7980
with:
@@ -90,6 +91,7 @@ jobs:
9091
uses: actions/checkout@v4
9192
with:
9293
path: fractal-tasks-core
94+
persist-credentials: false
9395

9496
- name: Install current fractal-tasks-core (this may fail)
9597
run: python -m pip install -e ./fractal-tasks-core

.github/workflows/package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 1
20+
persist-credentials: false
2021

2122
- name: Set up Python 3.10
2223
uses: actions/setup-python@v5

.github/workflows/poetry_build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
steps:
1313

14-
- name: Checkout repository
15-
uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
1617

1718
- name: "Set up Python 3.10"
1819
uses: actions/setup-python@v5

.github/workflows/poetry_update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
runs-on: ubuntu-22.04
1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2022
- name: Install poetry
2123
run: pipx install poetry==1.8.2
2224
- uses: actions/setup-python@v5

.github/workflows/publish_pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
if: ${{ env.CURRENT_PYPI_TOKEN == '' }}
2222
run: echo "Secret PYPI_TOKEN is not defined." && exit 1
2323

24-
- name: Checkout repository
25-
uses: actions/checkout@v4
24+
- uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
2627

27-
- name: "Set up Python 3.10"
28-
uses: actions/setup-python@v5
28+
- uses: actions/setup-python@v5
2929
with:
3030
python-version: "3.10"
3131

0 commit comments

Comments
 (0)