Skip to content

Commit 2a91702

Browse files
authored
Merge pull request #515 from boahc077/github_actions_token_permission
ci: add minimum GitHub token permissions for workflows
2 parents c29dc4b + d64f3cf commit 2a91702

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/continuous-integration.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
99
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: "1"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
tests:
1316
name: "CI"

.github/workflows/lint.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- push
55
- pull_request
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
tests:
912
name: "Lint"

.github/workflows/phpstan.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
99
SYMFONY_PHPUNIT_VERSION: ""
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
tests:
1316
name: "PHPStan"

0 commit comments

Comments
 (0)