Skip to content

Commit 4210542

Browse files
committed
Add permissions to workflows
1 parent 495d923 commit 4210542

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

.github/workflows/dev-containers.yml

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

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
cli:
1316
name: CLI

.github/workflows/publish-dev-containers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: read
10+
actions: read
11+
812
jobs:
913
main:
1014
runs-on: ubuntu-latest

.github/workflows/test-docker-v20.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: ['main']
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test-docker-v20:
1114
name: Docker v20.10 Compatibility

.github/workflows/test-docker-v29.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: ['main']
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test-docker-v29:
1114
name: Docker v29.0.0 Compatibility

.github/workflows/test-plan-item-validator.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
issues:
44
types: [edited]
55

6+
permissions:
7+
contents: read
8+
issues: write
9+
610
jobs:
711
main:
812
runs-on: ubuntu-latest

.github/workflows/test-windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
pull_request:
1212
branches:
1313
- '**'
14+
15+
permissions:
16+
contents: read
17+
1418
jobs:
1519
tests-matrix:
1620
name: Tests Matrix (Windows)

0 commit comments

Comments
 (0)