Skip to content

Commit 7e23e7b

Browse files
emptyhammondm-hulbert
authored andcommitted
ci: disable credential persistence on checkout
Set persist-credentials: false on actions/checkout so the default GITHUB_TOKEN is not left in the local git config after checkout. Identified by a routine workflow security audit.
1 parent ca1ec69 commit 7e23e7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/review-app.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123

2224
- name: Check if user is an Ably organization member
2325
if: github.event.action == 'labeled' && github.event.label.name == 'review-app'

0 commit comments

Comments
 (0)