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
10 changes: 7 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ updates:
- 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
interval: "weekly"
cooldown:
default-days: 7
ignore:
- dependency-name: "yiisoft/*"

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

name: backwards compatibility

permissions:
contents: read
jobs:
roave_bc_check:
uses: yiisoft/actions/.github/workflows/bc.yml@master
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ on:

name: build

permissions:
contents: read
jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ on:

name: Composer require checker

permissions:
contents: read
jobs:
composer-require-checker:
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:

name: mutation test

permissions:
contents: read
jobs:
mutation:
uses: yiisoft/actions/.github/workflows/infection.yml@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,8 +20,5 @@ 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'
2 changes: 2 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ on:

name: static analysis

permissions:
contents: read
jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/yiisoft-di.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:

Check warning on line 1 in .github/workflows/yiisoft-di.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

concurrency-limits

yiisoft-di.yml:1: insufficient job-level concurrency limits: workflow is missing concurrency setting
pull_request:
paths-ignore:
- 'docs/**'
Expand All @@ -23,6 +23,8 @@

name: yiisoft-di

permissions:
contents: read
jobs:
phpunit:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
Expand All @@ -42,25 +44,27 @@

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

Check warning on line 47 in .github/workflows/yiisoft-di.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

yiisoft-di.yml:47: action's hash pin has mismatched or missing version comment: missing version comment
with:
path: definitions-repo
persist-credentials: false

- name: Checkout Yii DI
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5

Check warning on line 53 in .github/workflows/yiisoft-di.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

yiisoft-di.yml:53: action's hash pin has mismatched or missing version comment: missing version comment
with:
path: di-repo
repository: 'yiisoft/di'
persist-credentials: false

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

Check warning on line 60 in .github/workflows/yiisoft-di.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

stale-action-refs

yiisoft-di.yml:60: commit hash does not point to a Git tag: this step
with:
php-version: 8.2
tools: composer:v2
coverage: none

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

Check warning on line 67 in .github/workflows/yiisoft-di.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

yiisoft-di.yml:67: action's hash pin has mismatched or missing version comment: missing version comment
with:
working-directory: di-repo

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/yiisoft-factory.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:

Check warning on line 1 in .github/workflows/yiisoft-factory.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

concurrency-limits

yiisoft-factory.yml:1: insufficient job-level concurrency limits: workflow is missing concurrency setting
pull_request:
paths-ignore:
- 'docs/**'
Expand All @@ -23,6 +23,8 @@

name: yiisoft-factory

permissions:
contents: read
jobs:
phpunit:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
Expand All @@ -41,25 +43,27 @@

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

Check warning on line 46 in .github/workflows/yiisoft-factory.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

yiisoft-factory.yml:46: action's hash pin has mismatched or missing version comment: missing version comment
with:
path: definitions-repo
persist-credentials: false

- name: Checkout Yii Factory
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5

Check warning on line 52 in .github/workflows/yiisoft-factory.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

yiisoft-factory.yml:52: action's hash pin has mismatched or missing version comment: missing version comment
with:
path: factory-repo
repository: 'yiisoft/factory'
persist-credentials: false

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

Check warning on line 59 in .github/workflows/yiisoft-factory.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

stale-action-refs

yiisoft-factory.yml:59: commit hash does not point to a Git tag: this step
with:
php-version: 8.2
tools: composer:v2
coverage: none

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

Check warning on line 66 in .github/workflows/yiisoft-factory.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

yiisoft-factory.yml:66: action's hash pin has mismatched or missing version comment: missing version comment
with:
working-directory: factory-repo

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