Skip to content

Commit c963295

Browse files
authored
Merge pull request #1508 from mskanth972/AddPermissions
Add permissions to all GitHub actions
2 parents d35527a + 8442c13 commit c963295

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
schedule:
2121
- cron: '33 20 * * 5'
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
analyze:
2528
name: Analyze

.github/workflows/container-image.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Container Images
22

33
on: push
4+
5+
permissions:
6+
contents: read
7+
security-events: write
8+
49
jobs:
510
build:
611
# this is to prevent the job to run at forked projects

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
paths:
88
- "charts/**"
99

10+
permissions:
11+
contents: write # Create new release to host chart artifacts
12+
pages: write # Publish chart to pages
13+
1014
jobs:
1115
release:
1216
runs-on: ubuntu-latest

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
# Sequence of patterns matched against refs/tags
55
tags:
66
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
7+
8+
permissions:
9+
contents: write # Create releases
10+
711
jobs:
812
build:
913
name: Release

0 commit comments

Comments
 (0)