Skip to content

Commit 4e376ed

Browse files
feat: add an allow list to security checker
1 parent c94b08f commit 4e376ed

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Upstream projects not having phpunit installed will install phpunit with an @stable version.
1616
- Added support for Drupal configuration and templates.
1717
- Migration docs for migration from v2 to v3 of the testing suite.
18+
- Added support for an Allow List within the Security Checker.
1819

1920
### Changed
2021
- [BREAKING] The composer.json configurations `config.youwe-testing-suite.type` and `config.mediact-testing-suite.type`

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"kint-php/kint": "@stable",
3232
"php-parallel-lint/php-parallel-lint": "^1.4",
3333
"phpmd/phpmd": "^2.15",
34-
"phpro/grumphp-shim": "^2.12",
34+
"phpro/grumphp-shim": "^2.15",
3535
"phpstan/phpstan": "@stable",
3636
"squizlabs/php_codesniffer": "^3.12.0",
3737
"youwe/composer-dependency-installer": "^2.0",

config/default/grumphp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ parameters:
4444

4545
securitychecker.lockfile: ./composer.lock
4646
securitychecker.run_always: true
47+
securitychecker.allow_list: []
4748

4849
git_blacklist.keywords:
4950
- "die("
@@ -132,3 +133,4 @@ grumphp:
132133
securitychecker_enlightn:
133134
lockfile: '%securitychecker.lockfile%'
134135
run_always: '%securitychecker.run_always%'
136+
allow_list: '%securitychecker.allow_list%'

config/drupal/grumphp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ imports:
33

44
# Extend git triggers with common Drupal constructs
55
parameters:
6-
git_blacklist.triggered_by: [ 'php', 'js', 'twig' ]
6+
git_blacklist.triggered_by: [ 'php', 'js', 'twig' ]
7+
8+
# securitychecker.allow_list:
9+
# - CVE-2002-0121 # Add a jira ticket indicating when this vulnerability will be fixed (update/upgrade will be
10+
# performed). Within that ticket explain this (new) vulnerability.

config/magento2/grumphp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ parameters:
1717
- "<?php echo"
1818
- "Magento\\\\Framework\\\\App\\\\ObjectManager"
1919
git_blacklist.triggered_by: [ 'php', 'js', 'phtml' ]
20+
21+
# securitychecker.allow_list:
22+
# - CVE-2002-0121 # Add a jira ticket indicating when this vulnerability will be fixed (update/upgrade will be
23+
# performed). Within that ticket explain this (new) vulnerability.

config/pimcore/grumphp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ imports:
33

44
# Extend git triggers with common pimcore constructs
55
parameters:
6-
git_blacklist.triggered_by: [ 'php', 'js', 'twig' ]
6+
git_blacklist.triggered_by: [ 'php', 'js', 'twig' ]
7+
8+
# securitychecker.allow_list:
9+
# - CVE-2002-0121 # Add a jira ticket indicating when this vulnerability will be fixed (update/upgrade will be
10+
# performed). Within that ticket explain this (new) vulnerability.

0 commit comments

Comments
 (0)