Skip to content

Commit b5203b0

Browse files
committed
Secure workflows
1 parent 4fee8c7 commit b5203b0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
1518
- name: Set up Python
1619
uses: actions/setup-python@v5
1720
with:
1821
python-version: '3.x'
19-
cache: 'pip'
2022

2123
- name: Install dependices
2224
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
1720
- name: Set up Python ${{ matrix.python-version }}
1821
uses: actions/setup-python@v5
1922
with:

0 commit comments

Comments
 (0)