Skip to content

Commit 5aac7bd

Browse files
committed
ci: disable persisted git credentials for improved security
1 parent cd2116d commit 5aac7bd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/rubocop.yml

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

1414
steps:
1515
- uses: actions/checkout@v3
16+
with:
17+
persist-credentials: false
1618
- uses: ruby/setup-ruby@v1
1719
with:
1820
ruby-version: ${{ matrix.ruby }}

.github/workflows/ruby.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v3
21+
with:
22+
persist-credentials: false
2123
- uses: actions/setup-node@v3
2224
- name: Save root node_modules to cache
2325
uses: actions/cache@v3
@@ -67,6 +69,8 @@ jobs:
6769
MT_KWARGS_HACK: 1
6870
steps:
6971
- uses: actions/checkout@v3
72+
with:
73+
persist-credentials: false
7074
- uses: actions/setup-node@v3
7175
- run: npm -g install yalc
7276
- run: yalc publish

0 commit comments

Comments
 (0)