From 82ac4b850f5c884575c6b07816fac27f7612904b Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Fri, 10 Jul 2026 13:41:34 +0300 Subject: [PATCH 1/2] Cleanup GitHub workflows --- .github/workflows/bc.yml_ | 4 ++-- .github/workflows/build.yml | 5 ++--- .github/workflows/composer-require-checker.yml | 5 ++--- .github/workflows/mutation.yml | 6 +++--- .github/workflows/rector-cs.yml | 2 +- .github/workflows/static.yml | 5 ++--- .github/workflows/zizmor.yml | 16 ++++++---------- 7 files changed, 18 insertions(+), 25 deletions(-) diff --git a/.github/workflows/bc.yml_ b/.github/workflows/bc.yml_ index 058dedb..2557a8c 100644 --- a/.github/workflows/bc.yml_ +++ b/.github/workflows/bc.yml_ @@ -1,3 +1,5 @@ +name: backwards compatibility + on: pull_request: paths: &paths @@ -8,8 +10,6 @@ on: branches: ['master'] paths: *paths -name: backwards compatibility - permissions: contents: read diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51cf5ab..4441a8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,5 @@ +name: build + on: pull_request: paths: &paths @@ -6,13 +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/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index ccb020e..35d07ea 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,3 +1,5 @@ +name: Composer require checker + on: pull_request: paths: &paths @@ -6,13 +8,10 @@ on: - '.github/workflows/composer-require-checker.yml' - 'composer.json' - 'composer-require-checker.json' - push: branches: ['master'] paths: *paths -name: Composer require checker - permissions: contents: read diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index f195195..bbfa760 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -1,3 +1,5 @@ +name: mutation test + on: pull_request: paths: &paths @@ -6,13 +8,11 @@ on: - '.github/workflows/mutation.yml' - 'composer.json' - 'infection.json.dist' - + - 'phpunit.xml.dist' push: branches: ['master'] paths: *paths -name: mutation test - permissions: contents: read diff --git a/.github/workflows/rector-cs.yml b/.github/workflows/rector-cs.yml index f90bcb2..83e3649 100644 --- a/.github/workflows/rector-cs.yml +++ b/.github/workflows/rector-cs.yml @@ -20,7 +20,7 @@ concurrency: jobs: rector: permissions: - contents: write # Required to commit automated Rector and CS fixes. + contents: write # Required to commit automated Rector and CS fixes uses: yiisoft/actions/.github/workflows/rector-cs.yml@master with: php: '8.1' diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 513361f..b4834f3 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,3 +1,5 @@ +name: static analysis + on: pull_request: paths: &paths @@ -6,13 +8,10 @@ on: - '.github/workflows/static.yml' - 'psalm*.xml' - 'composer.json' - push: branches: ['master'] paths: *paths -name: static analysis - permissions: contents: read diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 430255d..1e117a7 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -1,21 +1,17 @@ name: GitHub Actions Security Analysis with zizmor 🌈 on: - push: - branches: - - master - - main - paths: - - '.github/**.yml' - - '.github/**.yaml' pull_request: - paths: + paths: &paths - '.github/**.yml' - '.github/**.yaml' + push: + branches: [ 'master' ] + paths: *paths permissions: - actions: read # Required by zizmor when reading workflow metadata through the API. - contents: read # Required to read workflow files. + actions: read # Required by zizmor when reading workflow metadata through the API + contents: read # Required to read workflow files jobs: zizmor: From 90ff90abcdcd1f14d8ea8acd41d3af2e367b37ea Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Fri, 10 Jul 2026 14:32:05 +0300 Subject: [PATCH 2/2] Update .github/workflows/zizmor.yml Co-authored-by: Sergei Tigrov --- .github/workflows/zizmor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 1e117a7..7534234 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -6,7 +6,7 @@ on: - '.github/**.yml' - '.github/**.yaml' push: - branches: [ 'master' ] + branches: ['master'] paths: *paths permissions: