Skip to content

Commit 72eec23

Browse files
committed
chore: Add permissions to all workflows
1 parent d4b3ae4 commit 72eec23

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.github/workflows/gen-client.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Generate API Client
22
on:
33
workflow_dispatch:
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
gen-api:
710
timeout-minutes: 30

.github/workflows/lint_golang.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
golangci:
1215
name: Lint with GolangCI

.github/workflows/release-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ on:
33
push:
44
branches:
55
- main
6-
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
79

810
jobs:
911
release-please:

.github/workflows/unittest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
unitests:
1215
timeout-minutes: 30

0 commit comments

Comments
 (0)