Skip to content

Commit 9a1bba3

Browse files
CI: add least-privilege permissions to GitHub Actions workflows (#1894)
2 parents 8c87dc0 + 880e9df commit 9a1bba3

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/go-video-proto.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ concurrency:
77
group: ${{ github.ref }}-${{ github.workflow }}
88
cancel-in-progress: true
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
protoc:
1215
runs-on: ubuntu-latest

‎.github/workflows/on-tag.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ concurrency:
1313
group: ${{ github.ref }}-${{ github.workflow }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
contents: write
18+
pull-requests: read
19+
1620
jobs:
1721
version:
1822
runs-on: ubuntu-latest

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ concurrency:
99
group: ${{ github.ref }}-${{ github.workflow }}
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
1216
jobs:
1317
pull-request-on-release:
1418
name: Create Release PR

‎.github/workflows/typescript-video-proto.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ concurrency:
77
group: ${{ github.ref }}-${{ github.workflow }}
88
cancel-in-progress: true
99

10+
permissions: {}
11+
1012
jobs:
1113
protoc:
1214
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)