Skip to content

Commit 387727a

Browse files
Merge pull request #233 from rubygems/use-persist-credentials-false-for-actions-checkout
Prevent persisting credentials via `actions/checkout`
2 parents 81eefc3 + fe2f722 commit 387727a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.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:

_posts/2023-12-14-trusted-publishing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
steps:
3838
# Set up
3939
- uses: actions/checkout@v4
40+
with:
41+
persist-credentials: false
4042
- name: Set up Ruby
4143
uses: ruby/setup-ruby@v1
4244
with:

0 commit comments

Comments
 (0)