mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-04 10:27:28 -08:00
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
name: PHPStan Security Scan
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
jobs:
|
|
phpstan-security-scan:
|
|
name: PHPStan Security Scan
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.0'
|
|
coverage: none
|
|
ini-values: "memory_limit=-1"
|
|
extensions: mbstring, intl
|
|
- name: Download deps
|
|
run: composer update --no-interaction --no-progress
|
|
- name: Download PHPStan
|
|
run: composer require --dev phpstan/phpstan #:1.5.x-dev
|
|
- name: Download Larastan v1 # (Laravel Framework 6.20.44)
|
|
run: composer require nunomaduro/larastan:^1.0 --dev
|
|
- name: Download mcrypt helper
|
|
run: wget https://raw.githubusercontent.com/JetBrains/phpstorm-stubs/master/mcrypt/mcrypt.php -O _mcrypt_helper.php
|
|
- name: Delete conflicting file
|
|
run: rm -f database/migrations/2015_11_05_183749_image.php
|
|
- name: Execute PHPStan
|
|
run: vendor/bin/phpstan analyze app config routes --no-progress --error-format=github -l 5
|