-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (62 loc) · 1.59 KB
/
push.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
syntax_check:
name: Syntax Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check Syntax
uses: overtrue/[email protected]
runPHPCSInspection:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run PHPCS inspection
uses: rtCamp/action-phpcs-code-review@v3
env:
GH_BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
SKIP_FOLDERS: "tests,.github"
with:
args: "PHPCompatibility"
securityCheck1:
name: Security check 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: symfonycorp/security-checker-action@v5
securityCheck2:
name: Security check 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker://ghcr.io/psalm/psalm-github-actions
with:
composer_require_dev: true
composer_ignore_platform_reqs: true
security_analysis: true
report_file: results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
securityCheck3:
name: Security check 3
runs-on: ubuntu-latest
env:
GO111MODULE: true
steps:
- uses: actions/checkout@v3
- uses: securego/gosec@master
with:
args: ./src