You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Psalm – Security Scanner for PHP
1.2.0
Run Psalm’s Security Analysis as a Github action (a more general version can be found here).
name: Psalm Security Scan
on: [push, pull_request]
jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Psalm Security Scan
uses: docker://ghcr.io/psalm/psalm-security-scan
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: results.sarif
You can also specify a version.
- uses: docker://ghcr.io/psalm/psalm-security-scan
+ uses: docker://ghcr.io/psalm/psalm-security-scan:4.2.1