mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Merge pull request #210 from nextcloud/enh/207/set-up-psalm
set up psalm
This commit is contained in:
commit
d6ece6cad8
4 changed files with 61 additions and 0 deletions
18
.github/workflows/psalm-analysis.yml
vendored
Normal file
18
.github/workflows/psalm-analysis.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
name: Psalm Analysis
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
psalm:
|
||||||
|
name: Psalm
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Psalm
|
||||||
|
uses: docker://ghcr.io/nextcloud/all-in-one-psalm
|
||||||
|
with:
|
||||||
|
composer_ignore_platform_reqs: false
|
||||||
|
relative_dir: php
|
||||||
25
.github/workflows/psalm-security.yml
vendored
Normal file
25
.github/workflows/psalm-security.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
name: Psalm Security Analysis
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
psalm:
|
||||||
|
name: Psalm
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Psalm
|
||||||
|
uses: docker://ghcr.io/nextcloud/all-in-one-psalm
|
||||||
|
with:
|
||||||
|
relative_dir: php
|
||||||
|
security_analysis: true
|
||||||
|
composer_ignore_platform_reqs: false
|
||||||
|
report_file: results.sarif
|
||||||
|
- name: Upload Security Analysis results to GitHub
|
||||||
|
uses: github/codeql-action/upload-sarif@v1
|
||||||
|
with:
|
||||||
|
sarif_file: results.sarif
|
||||||
3
php/psalm-baseline.xml
Normal file
3
php/psalm-baseline.xml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<files psalm-version="dev-master@569e97d5e99c92f0ccd23f3bb39f16f6aa079ed2">
|
||||||
|
</files>
|
||||||
15
php/psalm.xml
Normal file
15
php/psalm.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<psalm
|
||||||
|
errorLevel="2"
|
||||||
|
resolveFromConfigFile="true"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns="https://getpsalm.org/schema/config"
|
||||||
|
xsi:schemaLocation="https://getpsalm.org/schema/config"
|
||||||
|
errorBaseline="psalm-baseline.xml"
|
||||||
|
>
|
||||||
|
<projectFiles>
|
||||||
|
<directory name="templates"/>
|
||||||
|
<directory name="src"/>
|
||||||
|
<file name="public/index.php"/>
|
||||||
|
</projectFiles>
|
||||||
|
</psalm>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue