Skip to content

Commit

Permalink
Add security checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Jan 17, 2021
1 parent 089f37a commit 3255325
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
name: Integrity check

on: [push]
on:
push:
branches:
- master
pull_request:
types: [ assigned, opened, synchronize, reopened ]
schedule:
- cron: '1 * * * *'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: Install PHP
uses: shivammathur/setup-php@master
with:
Expand All @@ -22,7 +29,9 @@ jobs:
# Install app deps
composer install --no-interaction --prefer-dist
# Check code checker and coding standards
- name: The PHP Security Checker
uses: symfonycorp/security-checker-action@v2

- name: Check coding standards
run: |
php temp/code-checker/code-checker --short-arrays --strict-types --fix --no-progress
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Baraja packages
Copyright (c) 2021 Baraja packages

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"phpstan/phpstan": "^0.12.18",
"tracy/tracy": "^2.7",
"phpstan/phpstan-nette": "^0.12.6",
"symplify/easy-coding-standard": "^7.2"
"symplify/easy-coding-standard": "^7.2",
"spaze/phpstan-disallowed-calls": "^1.1"
},
"autoload": {
"classmap": [
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
includes:
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon

0 comments on commit 3255325

Please sign in to comment.