oai-pmh2/.github/workflows/psalm.yml

42 lines
870 B
YAML
Raw Permalink Normal View History

2024-07-13 19:45:49 +02:00
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
2024-08-09 12:29:36 +02:00
- name: Setup Environment
uses: php-actions/composer@v6
with:
command: install
php_version: "8.1"
2024-07-13 19:45:49 +02:00
- 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