Skip to content

Commit

Permalink
Merge pull request #295 from Ecwid/codeql-analysis
Browse files Browse the repository at this point in the history
Added code analysis
  • Loading branch information
meteor-ec authored Sep 5, 2024
2 parents 517dac6 + 59fd2b0 commit b3d068d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Psalm PHP Code Security Scan
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
analyze:
runs-on: [ubuntu-latest]
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Psalm
uses: docker://ghcr.io/psalm/psalm-github-actions
with:
security_analysis: true
report_file: results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.phpunit.result.cache
.travis.yml
bin/
composer.json
composer.lock
phpunit.xml.dist
tests/
Expand Down
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"require": {
"wp-cli/wp-cli-bundle": "^2.9"
},
"require-dev": {
"phpunit/phpunit": "^8",
"yoast/phpunit-polyfills": "^2.0"
}
}

0 comments on commit b3d068d

Please sign in to comment.