Skip to content

chore: scope GITHUB_TOKEN to contents: read in workflows #267

chore: scope GITHUB_TOKEN to contents: read in workflows

chore: scope GITHUB_TOKEN to contents: read in workflows #267

Workflow file for this run

name: Static Analysis
on: ['push', 'pull_request']
permissions:
contents: read
jobs:
static:
name: Static Tests
runs-on: ubuntu-latest
strategy:
matrix:
dependency-version: [prefer-lowest, prefer-stable]
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup PHP
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
with:
php-version: 8.3
tools: composer:v2
coverage: none
- name: Install Dependencies
run: composer update --prefer-stable --no-interaction --no-progress --ansi
- name: Style
run: composer test:lint