Skip to content

Commit ee8a74f

Browse files
committed
Don't persist git credentials after checkout
1 parent d66b472 commit ee8a74f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- name: Checkout
1212
uses: actions/checkout@v4
1313
with:
14+
persist-credentials: false
1415
ref: ${{ github.event.pull_request.head.sha }}
1516
- name: Setup Python
1617
uses: actions/setup-python@v5
@@ -38,6 +39,7 @@ jobs:
3839
- name: Checkout
3940
uses: actions/checkout@v4
4041
with:
42+
persist-credentials: false
4143
ref: ${{ github.event.pull_request.head.sha }}
4244
- name: Setup Python
4345
uses: actions/setup-python@v5
@@ -66,6 +68,7 @@ jobs:
6668
- name: Checkout
6769
uses: actions/checkout@v4
6870
with:
71+
persist-credentials: false
6972
ref: ${{ github.event.pull_request.head.sha }}
7073
- name: Setup Python
7174
uses: actions/setup-python@v5

.github/workflows/publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1719
- name: Setup Python
1820
uses: actions/setup-python@v5
1921
with:

0 commit comments

Comments
 (0)