Skip to content

Commit ca9a228

Browse files
committed
Improve GithubActions security
1 parent f8c3426 commit ca9a228

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: CI
33

4+
permissions: {}
5+
46
on:
57
push:
68
branches:
@@ -19,7 +21,9 @@ jobs:
1921

2022
steps:
2123
- name: Checkout
22-
uses: actions/checkout@v5
24+
uses: actions/checkout@v6
25+
with:
26+
persist-credentials: false
2327

2428
- name: Setup Ruby
2529
uses: ruby/setup-ruby@v1
@@ -54,7 +58,9 @@ jobs:
5458

5559
steps:
5660
- name: Checkout
57-
uses: actions/checkout@v5
61+
uses: actions/checkout@v6
62+
with:
63+
persist-credentials: false
5864

5965
- name: Setup Ruby
6066
uses: ruby/setup-ruby@v1

0 commit comments

Comments
 (0)