Skip to content

Commit 56d926b

Browse files
committed
ci: add least-privilege permissions block
1 parent f479d79 commit 56d926b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/static.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Static Analysis
22

33
on: ['push', 'pull_request']
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
phpstan:
710
runs-on: ubuntu-latest
@@ -27,4 +30,4 @@ jobs:
2730
composer-options: "--prefer-dist"
2831

2932
- name: Run PHPStan
30-
run: vendor/bin/phpstan analyse --no-progress --ansi
33+
run: vendor/bin/phpstan analyse --no-progress --ansi

0 commit comments

Comments
 (0)