Skip to content

Commit

Permalink
ci: add minimum GitHub token permissions for workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Kurmi <[email protected]>
  • Loading branch information
ashishkurmi committed Oct 2, 2022
1 parent c29dc4b commit d64f3cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: "1"

permissions:
contents: read

jobs:
tests:
name: "CI"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
- push
- pull_request

permissions:
contents: read

jobs:
tests:
name: "Lint"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
SYMFONY_PHPUNIT_VERSION: ""

permissions:
contents: read

jobs:
tests:
name: "PHPStan"
Expand Down

0 comments on commit d64f3cf

Please sign in to comment.