Skip to content

Commit 3ad2311

Browse files
committed
ci: Avoid persisting credentials in the checkout action.
see https://docs.zizmor.sh/audits/#artipacked
1 parent 43ac931 commit 3ad2311

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
27+
persist-credentials: false
2728
- uses: actions/setup-python@v5
2829
with:
2930
python-version: ${{ env.PYTHON_LATEST }}
@@ -75,6 +76,8 @@ jobs:
7576

7677
steps:
7778
- uses: actions/checkout@v4
79+
with:
80+
persist-credentials: false
7881
- uses: actions/setup-python@v5
7982
with:
8083
python-version: ${{ matrix.python-version }}
@@ -106,6 +109,8 @@ jobs:
106109
with:
107110
jobs: ${{ toJSON(needs) }}
108111
- uses: actions/checkout@v4
112+
with:
113+
persist-credentials: false
109114
- uses: actions/setup-python@v5
110115
with:
111116
python-version: ${{ env.PYTHON_LATEST }}
@@ -139,6 +144,7 @@ jobs:
139144
uses: actions/checkout@v4
140145
with:
141146
fetch-depth: 0
147+
persist-credentials: false
142148
- name: Install Python
143149
uses: actions/setup-python@v5
144150
- name: Install towncrier

0 commit comments

Comments
 (0)