forked from lstrojny/functional-php
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 989 Bytes
/
psalm.yml
File metadata and controls
42 lines (33 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Psalm Security Scan
on:
workflow_dispatch:
push:
branches: [ "qa", "main" ]
pull_request:
branches: [ "qa", "main" ]
permissions:
contents: read
jobs:
php-security:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP with required extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
- name: Setup Composer Access
run: composer config -g github-oauth.github.com ${{ secrets.ACTIONS_ACCESS_TOKEN }}
- name: Install Dependencies
run: composer install
- name: Run Psalm Security Scan
run: vendor/bin/psalm --taint-analysis --output-format=sarif > results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif