Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check

GitHub Action

Psalm – Security Scanner for PHP

1.1.0

Psalm – Security Scanner for PHP

check

Psalm – Security Scanner for PHP

Find security vulnerabilities in your PHP codebase with Psalm, a free and open-source tool created by Vimeo

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Psalm – Security Scanner for PHP

uses: psalm/[email protected]

Learn more about this action in psalm/psalm-github-security-scan

Choose a version

Psalm Github Security Scan

Run Psalm’s Security Analysis as a Github action (a more general version can be found here).

name: Static analysis

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://vimeo/psalm-github-security-scan
        
      - name: Upload Security Analysis results to GitHub
        uses: github/codeql-action/upload-sarif@v1
        with:
          sarif_file: results.sarif

Specify Psalm version

You can also specify a version.

-        uses: docker://vimeo/psalm-github-security-scan
+        uses: docker://vimeo/psalm-github-security-scan:4.2.0