Skip to content

Commit 8949a37

Browse files
committed
use read permissions by default
This is needed for private repositories that can not be read publically.
1 parent 0b5bd86 commit 8949a37

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/cs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: PHP Code Style
22

33
on: [ workflow_call ]
44

5-
permissions: {}
5+
permissions:
6+
contents: read
7+
pull-requests: read
68

79
jobs:
810
phpcs:

.github/workflows/matrix.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ on:
1313
description: 'The minimum PHP version supported'
1414
value: ${{ jobs.create-matrix.outputs.minphp }}
1515

16-
permissions: { }
16+
permissions:
17+
contents: read
18+
pull-requests: read
1719

1820
jobs:
1921
create-matrix:

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
type: string
1010
default: '{"php-version": ["7.4", "8.0", "8.1", "8.2"], "dokuwiki-branch": ["master", "stable"]}'
1111

12-
permissions: {}
12+
permissions:
13+
contents: read
14+
pull-requests: read
1315

1416
jobs:
1517
test:

0 commit comments

Comments
 (0)