Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# Too noisy. See https://github.community/t/increase-if-necessary-for-github-actions-in-dependabot/179581
open-pull-requests-limit: 0
# Maintain dependencies for GitHub Actions.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
ignore:
- dependency-name: "yiisoft/*"

# Maintain dependencies for Composer
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase-if-necessary
# Maintain dependencies for Composer
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase-if-necessary
cooldown:
default-days: 7
3 changes: 3 additions & 0 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:

name: backwards compatibility

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

name: build

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -47,10 +50,12 @@

steps:
- name: Checkout.
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5

Check warning on line 53 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

build.yml:53: action's hash pin has mismatched or missing version comment: missing version comment
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45

Check warning on line 58 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

stale-action-refs

build.yml:58: commit hash does not point to a Git tag: this step
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.EXTENSIONS }}
Expand All @@ -70,7 +75,7 @@
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations

- name: Upload coverage to Codecov.
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@04b047e8bb82a0c002c8312c1c880fbc6a999d45

Check warning on line 78 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

stale-action-refs

build.yml:78: commit hash does not point to a Git tag: this step
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:

name: Composer require checker

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

name: mutation test

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -38,18 +41,20 @@

steps:
- name: Checkout.
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5

Check warning on line 44 in .github/workflows/mutation.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

mutation.yml:44: action's hash pin has mismatched or missing version comment: missing version comment
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45

Check warning on line 49 in .github/workflows/mutation.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

stale-action-refs

mutation.yml:49: commit hash does not point to a Git tag: this step
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.EXTENSIONS }}
ini-values: memory_limit=-1
coverage: pcov

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
uses: ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f

Check warning on line 57 in .github/workflows/mutation.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

mutation.yml:57: action's hash pin has mismatched or missing version comment: missing version comment

- name: Install db.
uses: yiisoft/actions/install-packages@master
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/rector-cs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Rector + PHP CS Fixer

on:
pull_request_target:
pull_request:
paths:
- 'src/**'
- 'tests/**'
Expand All @@ -20,10 +20,7 @@ concurrency:
jobs:
rector:
uses: yiisoft/actions/.github/workflows/rector-cs.yml@master
secrets:
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
php: '8.1'
required-packages: >-
['db']
3 changes: 3 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:

name: Static analysis

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -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
Loading