Skip to content

ci: add explicit GITHUB_TOKEN permissions in workflows #1387

ci: add explicit GITHUB_TOKEN permissions in workflows

ci: add explicit GITHUB_TOKEN permissions in workflows #1387

Workflow file for this run

name: Static Analysis
on: [push, pull_request]
permissions:
contents: read
concurrency:
cancel-in-progress: ${{ !contains(github.ref, 'release/')}}
group: tests-${{ github.workflow }}-${{ github.ref }}
jobs:
psalm:
name: Psalm Validation (PHP ${{ matrix.php }}, OS ${{ matrix.os }})
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
php: [8.3]
os: [ubuntu-latest]
steps:
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
with:
php-version: ${{ matrix.php }}
extensions: dom
- name: Check Out Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install dependencies with composer
uses: ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27 # v4
with:
dependency-versions: ${{ matrix.dependencies }}
- name: 🔍 Run Tests
run: vendor/bin/psalm
arch:
name: Architecture tests
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
php: [8.3]
os: [ubuntu-latest]
steps:
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
with:
php-version: ${{ matrix.php }}
extensions: dom
- name: Check Out Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
- name: Install dependencies with composer
uses: ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27 # v4
with:
dependency-versions: ${{ matrix.dependencies }}
- name: 🔍 Run Tests
run: composer test:arch