Skip to content

Commit 3685a54

Browse files
committed
Don't persist credentials longer than necessary in GitHub actions
1 parent 35ed2d6 commit 3685a54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v5
29+
with:
30+
persist-credentials: false
2931
- name: Set up PHP 7.4
3032
uses: shivammathur/setup-php@v2
3133
with:
@@ -54,6 +56,8 @@ jobs:
5456
fail-fast: false
5557
steps:
5658
- uses: actions/checkout@v5
59+
with:
60+
persist-credentials: false
5761
- uses: shivammathur/setup-php@v2
5862
with:
5963
php-version: ${{matrix.php}}
@@ -82,6 +86,7 @@ jobs:
8286
steps:
8387
- uses: actions/checkout@v5
8488
with:
89+
persist-credentials: false
8590
fetch-depth: 0
8691
- name: Rebase PHP8 branch
8792
env:

0 commit comments

Comments
 (0)