From 2502942cac1e2716f3c3a0da9909adeb0d7726f4 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 25 Jun 2026 00:46:18 +0300 Subject: [PATCH 1/2] Fix zizmor workflow findings --- .github/dependabot.yml | 12 ++---------- .github/workflows/bc.yml | 3 +++ .github/workflows/build.yml | 3 +++ .github/workflows/mutation.yml | 3 +++ .github/workflows/static.yml | 3 +++ .github/workflows/zizmor.yml | 22 ++++++++++++++++++++++ 6 files changed, 36 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/zizmor.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 64c8667..5fd269d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,10 +7,6 @@ updates: interval: "weekly" cooldown: default-days: 7 - groups: - github-actions: - patterns: - - "*" ignore: - dependency-name: "yiisoft/*" @@ -18,11 +14,7 @@ updates: - package-ecosystem: "composer" directory: "/" schedule: - interval: "daily" + interval: "daily" + versioning-strategy: increase-if-necessary cooldown: default-days: 7 - groups: - composer-dependencies: - patterns: - - "*" - versioning-strategy: increase-if-necessary diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index e06a27c..fab5886 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -4,6 +4,9 @@ on: name: backwards compatibility +permissions: + contents: read + jobs: roave_bc_check: uses: yiisoft/actions/.github/workflows/bc.yml@master diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 723f068..7e96eee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,9 @@ on: name: build +permissions: + contents: read + jobs: phpunit: uses: yiisoft/actions/.github/workflows/phpunit.yml@master diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index c1aca98..8f193f6 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -19,6 +19,9 @@ on: name: mutation test +permissions: + contents: read + jobs: mutation: uses: yiisoft/actions/.github/workflows/roave-infection.yml@master diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 0537b6e..d8f13b0 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -21,6 +21,9 @@ on: name: static analysis +permissions: + contents: read + jobs: psalm: uses: yiisoft/actions/.github/workflows/psalm.yml@master diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 0000000..430255d --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,22 @@ +name: GitHub Actions Security Analysis with zizmor 🌈 + +on: + push: + branches: + - master + - main + paths: + - '.github/**.yml' + - '.github/**.yaml' + pull_request: + paths: + - '.github/**.yml' + - '.github/**.yaml' + +permissions: + actions: read # Required by zizmor when reading workflow metadata through the API. + contents: read # Required to read workflow files. + +jobs: + zizmor: + uses: yiisoft/actions/.github/workflows/zizmor.yml@master From 1f39dadda35d53e8579adbf3f69a88bf5bf772c6 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 6 Jul 2026 10:33:49 +0300 Subject: [PATCH 2/2] Run BC check on PHP 8.4 --- .github/workflows/bc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index fab5886..9a6bc8e 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -14,4 +14,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1'] + ['8.4']