From 42a462d94416a3931500f36c449b2f05b143c78a Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 8 Jul 2026 10:51:20 +0300 Subject: [PATCH 1/3] Cleanup GitHub Workflows --- .github/workflows/bc.yml | 11 ++++------- .github/workflows/composer-require-checker.yml | 13 ++++--------- .github/workflows/mutation.yml | 18 +++++++----------- .github/workflows/static.yml | 13 ++++--------- .github/workflows/zizmor.yml | 6 ++---- 5 files changed, 21 insertions(+), 40 deletions(-) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index aae258317..67eefd367 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -1,17 +1,14 @@ +name: backwards compatibility + on: pull_request: - paths: + paths: &paths - 'src/**' - '.github/workflows/bc.yml' - 'composer.json' push: branches: ['master'] - paths: - - 'src/**' - - '.github/workflows/bc.yml' - - 'composer.json' - -name: backwards compatibility + paths: *paths permissions: contents: read diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index 29c303fc3..f1e1b0538 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,20 +1,15 @@ +name: Composer require checker + on: pull_request: - paths: + paths: &paths - 'src/**' - '.github/workflows/composer-require-checker.yml' - 'composer.json' - 'composer-require-checker.json' - push: branches: ['master'] - paths: - - 'src/**' - - '.github/workflows/composer-require-checker.yml' - - 'composer.json' - - 'composer-require-checker.json' - -name: Composer require checker + paths: *paths permissions: contents: read diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 7281baeb0..80ca62c8e 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -1,18 +1,14 @@ +name: mutation test + on: pull_request: - paths: + paths: &paths - 'src/**' - '.github/workflows/mutation.yml' - 'composer.json' - push: branches: ['master'] - paths: - - 'src/**' - - '.github/workflows/mutation.yml' - - 'composer.json' - -name: mutation test + paths: *paths permissions: contents: read @@ -52,12 +48,12 @@ jobs: steps: - name: Checkout. - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: persist-credentials: false - name: Install PHP with extensions. - uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45 + uses: shivammathur/setup-php@34a5396826718e0013f08e3e639d1c315d5f6b23 # 2.35.0 with: php-version: ${{ matrix.php }} extensions: ${{ env.EXTENSIONS }} @@ -65,7 +61,7 @@ jobs: coverage: pcov - name: Install Composer dependencies - uses: ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f + uses: ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f # 3.2.1 - name: Install db. uses: yiisoft/actions/install-packages@master diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 31af80e5d..4724d8b52 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,20 +1,15 @@ +name: Static analysis + on: pull_request: - paths: + paths: &paths - 'src/**' - '.github/workflows/static.yml' - 'psalm*.xml' - 'composer.json' - push: branches: ['master'] - paths: - - 'src/**' - - '.github/workflows/static.yml' - - 'psalm*.xml' - - 'composer.json' - -name: Static analysis + paths: *paths permissions: contents: read diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index dce9aecfe..50a4b5ee8 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -2,13 +2,11 @@ name: GitHub Actions Security Analysis with zizmor 🌈 on: push: - paths: + paths: &paths - '.github/**.yml' - '.github/**.yaml' pull_request: - paths: - - '.github/**.yml' - - '.github/**.yaml' + paths: *paths permissions: contents: read From 7dec01a720af487aa7e635024ac40dbafe429c94 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 8 Jul 2026 10:55:27 +0300 Subject: [PATCH 2/3] fix --- .github/workflows/build.yml | 4 ++-- .github/workflows/zizmor.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76789c671..d437e2a82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,5 @@ +name: build + on: pull_request: paths: &paths @@ -6,12 +8,10 @@ on: - '.github/workflows/build.yml' - 'composer.json' - 'phpunit.xml.dist' - push: branches: ['master'] paths: *paths -name: build permissions: contents: read diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 50a4b5ee8..0c2cec48e 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -6,10 +6,12 @@ on: - '.github/**.yml' - '.github/**.yaml' pull_request: + branches: ['master'] paths: *paths permissions: - contents: read + actions: read # Required by zizmor when reading workflow metadata through the API + contents: read # Required to read workflow files jobs: zizmor: From 5cbd40930cd3786f3e958901ea80c5371c0634c8 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 8 Jul 2026 10:56:14 +0300 Subject: [PATCH 3/3] fix --- .github/workflows/zizmor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 0c2cec48e..1e117a71c 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -1,12 +1,12 @@ name: GitHub Actions Security Analysis with zizmor 🌈 on: - push: + pull_request: paths: &paths - '.github/**.yml' - '.github/**.yaml' - pull_request: - branches: ['master'] + push: + branches: [ 'master' ] paths: *paths permissions: