Skip to content

Commit

Permalink
Add Psalm GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meyer committed Jan 26, 2024
1 parent addf2e8 commit 1522299
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Psalm Static Analyzer

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
Psalm:
name: Psalm Scanner
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read

steps:
- name: Checkout Source Code
uses: actions/checkout@v4

- name: Run Psalm
uses: docker://ghcr.io/psalm/psalm-github-actions
with:
security_analysis: true
report_file: psalm-results.sarif

- name: Upload Analysis Results
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: psalm-results.sarif
wait-for-processing: true

0 comments on commit 1522299

Please sign in to comment.