Skip to content

Security

Security #2276

Workflow file for this run

name: Security
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
security:
name: PHP ${{ matrix.php-versions }} - ${{ matrix.composer-dependencies }} dependencies
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['8.0', '8.1', '8.2']
composer-dependencies: ['highest', 'lowest']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: zip, redis, pcntl
env:
update: true
- name: Install Composer dependencies
if: matrix.php-versions != '8.2'
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.composer-dependencies }}
composer-options: '--prefer-stable'
- name: Install Composer dependencies while ignoring platform reqs
if: matrix.php-versions == '8.2'
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.composer-dependencies }}
composer-options: '--prefer-stable --ignore-platform-reqs'
- uses: actions/cache@v3
id: cache-db
with:
path: ~/.symfony/cache
key: db
- uses: symfonycorp/security-checker-action@v3