diff --git a/.github/workflows/code-security-analysis-psalm.yml b/.github/workflows/code-security-analysis-psalm.yml new file mode 100644 index 0000000..ea143ee --- /dev/null +++ b/.github/workflows/code-security-analysis-psalm.yml @@ -0,0 +1,24 @@ +name: Static Code Security Analysis (Psalm) + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + psalm: + name: Psalm + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Psalm + uses: docker://ghcr.io/psalm/psalm-github-actions:6.10.3 + 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