Skip to content

Commit b38febb

Browse files
Github actions: don't persist credentials and add permissions (#1436)
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
1 parent 42da78c commit b38febb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
25+
persist-credentials: false
2526
- name: Setup Go
2627
uses: actions/setup-go@v5
2728
with:
@@ -47,6 +48,7 @@ jobs:
4748
uses: actions/checkout@v4
4849
with:
4950
fetch-depth: 0
51+
persist-credentials: false
5052
- name: Setup Go
5153
uses: actions/setup-go@v5
5254
with:
@@ -70,6 +72,7 @@ jobs:
7072
uses: actions/checkout@v4
7173
with:
7274
fetch-depth: 0
75+
persist-credentials: false
7376
- name: Setup Go
7477
uses: actions/setup-go@v5
7578
with:

.github/workflows/test-mixins.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
24+
persist-credentials: false
2425
- name: Setup Go
2526
uses: actions/setup-go@v5
2627
with:
@@ -48,6 +49,7 @@ jobs:
4849
uses: actions/checkout@v4
4950
with:
5051
fetch-depth: 0
52+
persist-credentials: false
5153
- name: Get changed mixins
5254
id: changed-mixins
5355
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
@@ -90,6 +92,7 @@ jobs:
9092
uses: actions/checkout@v4
9193
with:
9294
fetch-depth: 0
95+
persist-credentials: false
9396
- name: Setup Go
9497
uses: actions/setup-go@v5
9598
with:

0 commit comments

Comments
 (0)