File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Psalm Security Scan
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [ "qa", "main" ]
7+ pull_request :
8+ branches : [ "qa", "main" ]
9+
10+ permissions :
11+ contents : read
12+
13+ jobs :
14+ php-security :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
18+ security-events : write
19+ actions : read
20+
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+
25+ - name : Set up PHP with required extensions
26+ uses : shivammathur/setup-php@v2
27+ with :
28+ php-version : 8.4
29+
30+ - name : Setup Composer Access
31+ run : composer config -g github-oauth.github.com ${{ secrets.ACTIONS_ACCESS_TOKEN }}
32+
33+ - name : Install Dependencies
34+ run : composer install
35+
36+ - name : Run Psalm Security Scan
37+ run : vendor/bin/psalm --taint-analysis --output-format=sarif > results.sarif
38+
39+ - name : Upload Security Analysis results to GitHub
40+ uses : github/codeql-action/upload-sarif@v3
41+ with :
42+ sarif_file : results.sarif
Original file line number Diff line number Diff line change 2222 "require-dev" : {
2323 "squizlabs/php_codesniffer" : " ~3.0" ,
2424 "phpunit/phpunit" : " ^9.6" ,
25- "friendsofphp/php-cs-fixer" : " v3.84"
25+ "friendsofphp/php-cs-fixer" : " v3.84" ,
26+ "vimeo/psalm" : " ^6.14"
2627 },
2728 "autoload" : {
2829 "psr-4" : {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <psalm
3+ errorLevel =" 7"
4+ resolveFromConfigFile =" true"
5+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6+ xmlns =" https://getpsalm.org/schema/config"
7+ xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+ findUnusedBaselineEntry =" true"
9+ findUnusedCode =" true"
10+ >
11+ <projectFiles >
12+ <directory name =" src" />
13+ <ignoreFiles >
14+ <directory name =" vendor" />
15+ </ignoreFiles >
16+ </projectFiles >
17+ </psalm >
You can’t perform that action at this time.
0 commit comments