Skip to content

Commit d86d694

Browse files
authored
Add psalm_security workflow
1 parent af51734 commit d86d694

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Psalm Security Scan
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "master" ]
9+
schedule:
10+
- cron: '31 10 * * 6'
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
php-security:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read # for actions/checkout to fetch code
20+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
21+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v6
26+
27+
- name: Psalm Security Scan
28+
uses: psalm/psalm-github-security-scan@f3e6fd9432bc3e44aec078572677ce9d2ef9c287
29+
30+
- name: Upload Security Analysis results to GitHub
31+
uses: github/codeql-action/upload-sarif@v3
32+
with:
33+
sarif_file: results.sarif

0 commit comments

Comments
 (0)