Skip to content

Commit 59ae103

Browse files
committed
Add persist-credentials: false to actions/checkout
1 parent 26a67af commit 59ae103

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/lint.yml

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

1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1719
- uses: actions/setup-python@v5
1820
with:
1921
python-version: "3.x"

.github/workflows/source-and-docs-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
6060
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6161
with:
62+
persist-credentials: false
6263
repository: "${{ env.GIT_REMOTE }}/cpython"
6364
ref: "v${{ env.CPYTHON_RELEASE }}"
6465
path: "cpython"
@@ -77,10 +78,13 @@ jobs:
7778
steps:
7879
- name: "Checkout python/release-tools"
7980
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
81+
with:
82+
persist-credentials: false
8083

8184
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
8285
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8386
with:
87+
persist-credentials: false
8488
repository: "${{ env.GIT_REMOTE }}/cpython"
8589
ref: "v${{ env.CPYTHON_RELEASE }}"
8690
path: "cpython"
@@ -118,6 +122,7 @@ jobs:
118122
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
119123
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
120124
with:
125+
persist-credentials: false
121126
repository: "${{ env.GIT_REMOTE }}/cpython"
122127
ref: "v${{ env.CPYTHON_RELEASE }}"
123128

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
with:
15+
persist-credentials: false
1416
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1517
with:
1618
python-version: 3.x

0 commit comments

Comments
 (0)