From 2af905ebffaa413f1c6bb18637d9bcd0bc96afad Mon Sep 17 00:00:00 2001 From: Tim Bernhard Date: Sun, 30 Jan 2022 08:49:40 +0100 Subject: [PATCH] Update GitHub action's setup-php due to CVE --- .github/workflows/code_style_check.yaml | 2 +- .github/workflows/static_tests.yml | 2 +- .github/workflows/tests.yml | 2 +- ecs.php | 5 ++++- phpstan.neon | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_style_check.yaml b/.github/workflows/code_style_check.yaml index 8be70dc7..361534a4 100644 --- a/.github/workflows/code_style_check.yaml +++ b/.github/workflows/code_style_check.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@v1 + - uses: shivammathur/setup-php@v2 with: php-version: 7.3 coverage: none # disable xdebug, pcov diff --git a/.github/workflows/static_tests.yml b/.github/workflows/static_tests.yml index 5c37da4a..9346efe1 100644 --- a/.github/workflows/static_tests.yml +++ b/.github/workflows/static_tests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@v1 + - uses: shivammathur/setup-php@v2 with: php-version: 7.3 coverage: none # disable xdebug, pcov diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6b635cc5..117b529e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,7 +39,7 @@ jobs: - name: Setup PHP # use PHP of specific version - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: none # disable xdebug, pcov diff --git a/ecs.php b/ecs.php index 1ae031f1..ab39a780 100644 --- a/ecs.php +++ b/ecs.php @@ -20,7 +20,10 @@ $parameters = $containerConfigurator->parameters(); - $parameters->set(Option::SETS, [SetList::CLEAN_CODE, SetList::PSR_12]); + $parameters->set(Option::SETS, [ + SetList::CLEAN_CODE, + SetList::PSR_12 + ]); $parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']); diff --git a/phpstan.neon b/phpstan.neon index 2a2058c1..b7735a56 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,7 +4,7 @@ parameters: - src # - tests - # things we disable for the moement, but one day... + # things we disable for the moment, but one day... inferPrivatePropertyTypeFromConstructor: true checkMissingIterableValueType: false checkGenericClassInNonGenericObjectType: false