forked from Philipinho/Simple-PHP-Blog
-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 898 Bytes
/
psalm.yml
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
name: Psalm Static analysis
on:
push:
paths-ignore: '.*'
pull_request:
jobs:
psalm:
name: Psalm
permissions:
actions: read
checks: read
contents: read
deployments: none
id-token: none
issues: write
discussions: read
packages: read
pages: none
pull-requests: write
repository-projects: read
security-events: write
statuses: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Psalm code analysis
uses: docker://ghcr.io/psalm/psalm-github-actions
with:
security_analysis: true
report_file: results.sarif
findUnusedCode: true
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif