Skip to content

Update CI

Update CI #34

Workflow file for this run

name: Security
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'resources/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- '.editorconfig'
- 'psalm.xml'
push:
paths-ignore:
- 'docs/**'
- 'resources/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- '.editorconfig'
- 'psalm.xml'
jobs:
security:
name: Security Checks (PHP ${{ matrix.php }}, OS ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Note: This workflow requires only the LATEST version of PHP
os:
- ubuntu-latest
php-version:
- '8.2'
dependencies:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v5
- name: 🛠️ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-values: error_reporting=E_ALL
coverage: none
- name: 🤖 Validate composer.json and composer.lock
run: composer validate --ansi --strict
- name: 📥 Install dependencies with composer
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
- name: 🐛 Check installed packages for security vulnerability advisories
run: composer audit --ansi