Skip to content

Commit f8e88f3

Browse files
ci: add explicit least permissions to workflows (#12813)
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
1 parent d091001 commit f8e88f3

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.github/workflows/check-changelog.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- 'CHANGELOG.md'
1111
- 'ci/check_changelog_prs.ts'
1212

13+
14+
permissions:
15+
contents: read
16+
1317
jobs:
1418
check-changelog:
1519
runs-on: ubuntu-latest

.github/workflows/license-checker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
pull_request:
2525
branches: [master, 'release/**']
2626

27+
permissions:
28+
contents: read
29+
2730
jobs:
2831
check-license:
2932
runs-on: ubuntu-latest

.github/workflows/push-dev-image-on-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- "**/*.md"
1212
workflow_dispatch:
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
build-test-push:
1619
strategy:

.github/workflows/semantic.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
1014
jobs:
1115
main:
1216
name: Validate PR title

0 commit comments

Comments
 (0)