Skip to content

Commit 5ee2e42

Browse files
committed
fix(ci): add missing permissions and set persist-credential: false for security
Signed-off-by: Mert Şişmanoğlu <mertssmnoglu@gmail.com>
1 parent cc0d3a4 commit 5ee2e42

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v6
16+
with:
17+
persist-credentials: false
1318

1419
- name: Set up Go
1520
uses: actions/setup-go@v6
@@ -25,6 +30,8 @@ jobs:
2530
runs-on: ubuntu-latest
2631
steps:
2732
- uses: actions/checkout@v6
33+
with:
34+
persist-credentials: false
2835

2936
- name: Set up Go
3037
uses: actions/setup-go@v6

0 commit comments

Comments
 (0)