Skip to content

Commit 23d2b55

Browse files
author
Emmanuel Campait
committed
add permissions on workflows files
1 parent 741db7d commit 23d2b55

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- main
1010
pull_request:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
phpstan:
1417
runs-on: ubuntu-latest
@@ -27,5 +30,8 @@ jobs:
2730
- name: Install dependencies
2831
run: composer install --no-interaction --prefer-dist
2932

33+
- name: Prepare PHPStan temp directory
34+
run: mkdir -p build build/phpstan-tmp
35+
3036
- name: Run PHPStan
3137
run: vendor/bin/phpstan analyse -c phpstan.neon.dist --memory-limit=512M

.github/workflows/phpunit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- main
1010
pull_request:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
phpunit:
1417
runs-on: ubuntu-latest

.github/workflows/psalm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- main
1010
pull_request:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
psalm:
1417
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)