Skip to content

Commit b9e21e1

Browse files
Opt out of persisting credentials
`actions/checkout` uses a default value of `true` for `persist-credentials`, which results in credentials being written to the Git config.
1 parent 81eefc3 commit b9e21e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
with:
31+
persist-credentials: false
3032
- name: Setup Ruby
3133
uses: ruby/setup-ruby@v1
3234
with:

0 commit comments

Comments
 (0)