Skip to content

Commit 78b132f

Browse files
authored
Merge pull request #1555 from dgrisonnet/update-workflow-perms
Add content write permissions to release jobs
2 parents e8af0b3 + 60694b9 commit 78b132f

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/gh-workflow-approve.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- master
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
approve:
1316
name: Approve ok-to-test

.github/workflows/lint-test-chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- .github/workflows/lint-test-chart.yaml
77
- "charts/metrics-server/**"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint-test:
1114
name: Lint & Test

.github/workflows/release-chart.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
paths:
88
- charts/metrics-server/Chart.yaml
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
release:
1215
name: Release
@@ -15,6 +18,8 @@ jobs:
1518
defaults:
1619
run:
1720
shell: bash
21+
permissions:
22+
contents: write
1823
steps:
1924
- name: Checkout
2025
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7

.github/workflows/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ on:
55
types:
66
- published
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
name: build
1114
runs-on: ubuntu-latest
1215
defaults:
1316
run:
1417
shell: bash
18+
permissions:
19+
contents: write
1520
steps:
1621
- name: Checkout
1722
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7

0 commit comments

Comments
 (0)