Skip to content

Commit 16fe3bf

Browse files
committed
Add a cron that automatically check for security issue in prod
1 parent fe075cc commit 16fe3bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

symfonycorp/platformsh-meta/1.0/.platform.app.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ hooks:
4848
4949
(>&2 symfony-deploy)
5050
51+
crons:
52+
security-check:
53+
# Check that no security issues have been found for PHP packages deployed in production
54+
# See https://github.com/fabpot/local-php-security-checker
55+
spec: '50 23 * * *'
56+
cmd: |
57+
if [ "$SYMFONY_BRANCH" = "master" ]; then
58+
croncape php-security-checker
59+
fi
60+
5161
workers:
5262
messenger:
5363
# PHP background workers usually don't require much CPU.

0 commit comments

Comments
 (0)