Skip to content

Commit ef9a0ee

Browse files
committed
Add security checks.
1 parent 7b4ca45 commit ef9a0ee

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
name: Integrity check
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [ assigned, opened, synchronize, reopened ]
9+
schedule:
10+
- cron: '1 * * * *'
411

512
jobs:
613
build:
714
runs-on: ubuntu-latest
815

916
steps:
1017
- uses: actions/checkout@master
11-
18+
1219
- name: Install PHP
1320
uses: shivammathur/setup-php@master
1421
with:
@@ -22,7 +29,9 @@ jobs:
2229
# Install app deps
2330
composer install --no-interaction --prefer-dist
2431
25-
# Check code checker and coding standards
32+
- name: The PHP Security Checker
33+
uses: symfonycorp/security-checker-action@v2
34+
2635
- name: Check coding standards
2736
run: |
2837
php temp/code-checker/code-checker --short-arrays --strict-types --fix --no-progress

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Baraja packages
3+
Copyright (c) 2021 Baraja packages
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"phpstan/phpstan": "^0.12.18",
2121
"tracy/tracy": "^2.8",
2222
"phpstan/phpstan-nette": "^0.12.6",
23-
"symplify/easy-coding-standard": "^7.2"
23+
"symplify/easy-coding-standard": "^7.2",
24+
"spaze/phpstan-disallowed-calls": "^1.1"
2425
},
2526
"autoload": {
2627
"classmap": [

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
includes:
22
- vendor/phpstan/phpstan-nette/extension.neon
33
- vendor/phpstan/phpstan-nette/rules.neon
4+
- vendor/spaze/phpstan-disallowed-calls/extension.neon
5+
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
6+
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
47

58
parameters:
69
checkGenericClassInNonGenericObjectType: false

0 commit comments

Comments
 (0)