Skip to content

Commit f34cfb4

Browse files
ci: add permissions
Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
1 parent 03d55d2 commit f34cfb4

8 files changed

Lines changed: 26 additions & 3 deletions

File tree

‎.github/workflows/create-chart-update-pr.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: chart version (e.g. 0.1.0)
1111
type: string
1212

13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
1317
jobs:
1418
create-chart-update-pr:
1519
runs-on: "ubuntu-latest"

‎.github/workflows/e2e.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
branches:
1111
- "main"
1212

13+
permissions:
14+
contents: read
1315
jobs:
1416
e2e-k8s:
1517
name: "e2e-k8s"

‎.github/workflows/helm-release.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Release Charts"
22

33
on: "workflow_dispatch"
44

5+
permissions:
6+
contents: write
7+
58
jobs:
69
release:
710
runs-on: "ubuntu-latest"

‎.github/workflows/helm.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- "charts/**"
77
- "ct.yaml"
88

9+
permissions:
10+
contents: read
911
jobs:
1012
lint:
1113
runs-on: "ubuntu-22.04"

‎.github/workflows/main.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- "main"
7+
8+
permissions:
9+
contents: read
10+
711
jobs:
812
build:
913
name: "build"

‎.github/workflows/pr-labeled.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
types: [synchronize, opened, reopened, labeled, unlabeled]
66

7+
permissions: {}
8+
79
jobs:
810
label-do-not-merge:
911
runs-on: ubuntu-latest

‎.github/workflows/release.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
push:
44
tags:
55
- "v*"
6+
7+
permissions:
8+
contents: write
9+
packages: write
10+
611
jobs:
712
release:
813
name: "release"

‎.github/workflows/stale.yaml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ on:
99
schedule:
1010
- cron: "30 23 * * *"
1111

12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
1216
jobs:
1317
stale:
1418

1519
runs-on: ubuntu-slim
16-
permissions:
17-
issues: write
18-
pull-requests: write
1920

2021
steps:
2122
- uses: actions/stale@v10

0 commit comments

Comments
 (0)