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
9 changes: 7 additions & 2 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
on:

Check warning on line 1 in .github/workflows/bc.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

concurrency-limits

bc.yml:1: insufficient job-level concurrency limits: workflow is missing concurrency setting
pull_request:
push:

name: backwards compatibility

permissions:
contents: read
jobs:
roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5

Check warning on line 14 in .github/workflows/bc.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

bc.yml:14: action's hash pin has mismatched or missing version comment: missing version comment
with:
persist-credentials: false
- name: fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
uses: docker://nyholm/roave-bc-check-ga@sha256:a9d3d932a4d3ba6a5a0563ef3788918a538198ee9c061a153f9b55caa8d3625f
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

concurrency-limits

build.yml:1: insufficient job-level concurrency limits: workflow is missing concurrency setting
pull_request:
paths-ignore:
- 'docs/**'
Expand All @@ -21,6 +21,9 @@

name: build

permissions:
contents: read

jobs:
tests:
name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }}
Expand Down Expand Up @@ -50,7 +53,7 @@

services:
postgres:
image: postgres:${{ matrix.pgsql }}

Check failure on line 56 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

unpinned-images

build.yml:56: unpinned image references: container image is not pinned to a SHA256 hash
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root-password
Expand All @@ -61,10 +64,12 @@

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

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

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

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

stale-action-refs

build.yml:72: commit hash does not point to a Git tag: this step
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -77,7 +82,7 @@
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

build.yml:85: action's hash pin has mismatched or missing version comment: missing version comment
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

concurrency-limits

mutation.yml:1: insufficient job-level concurrency limits: workflow is missing concurrency setting
pull_request:
paths-ignore:
- 'docs/**'
Expand All @@ -19,6 +19,9 @@

name: mutation test

permissions:
contents: read

jobs:
mutation:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
Expand All @@ -38,7 +41,7 @@

services:
postgres:
image: postgres:13

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

unpinned-images

mutation.yml:44: unpinned image references: container image is not pinned to a SHA256 hash
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root-password
Expand All @@ -49,10 +52,12 @@

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

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

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

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

stale-action-refs

mutation.yml:60: commit hash does not point to a Git tag: this step
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -64,7 +69,7 @@
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace

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

View workflow job for this annotation

GitHub Actions / zizmor / Run zizmor 🌈

ref-version-mismatch

mutation.yml:72: action's hash pin has mismatched or missing version comment: missing version comment
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:

name: static analysis

permissions:
contents: read

jobs:
mutation:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
Expand All @@ -42,10 +45,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -56,7 +61,7 @@ jobs:
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
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