Fix #68: Add the CsrfHeaderMiddleware
middleware to use custom HTTP header to prevent forgery of requests, add the CsrfMiddleware::withSafeMethods()
method to configure a custom safe HTTP methods list
#412
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'infection.json.dist' | |
- 'phpunit.xml.dist' | |
push: | |
branches: [ 'master' ] | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'infection.json.dist' | |
- 'phpunit.xml.dist' | |
name: static analysis | |
jobs: | |
psalm: | |
uses: yiisoft/actions/.github/workflows/psalm.yml@master | |
with: | |
os: >- | |
['ubuntu-latest'] | |
php: >- | |
['8.1', '8.2'] | |
psalm74-80: | |
uses: yiisoft/actions/.github/workflows/psalm.yml@master | |
with: | |
psalm-config: psalm74-80.xml | |
os: >- | |
['ubuntu-latest'] | |
php: >- | |
['7.4', '8.0'] | |
psalm83: | |
uses: yiisoft/actions/.github/workflows/psalm.yml@master | |
with: | |
psalm-config: psalm83.xml | |
os: >- | |
['ubuntu-latest'] | |
php: >- | |
['8.3'] |