mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 05:56:11 +01:00
[FEATURE] Add security check (#78)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
parent
e10161203e
commit
dc3f774966
2 changed files with 29 additions and 2 deletions
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
|
@ -199,3 +199,28 @@ jobs:
|
||||||
typo3-version:
|
typo3-version:
|
||||||
- ^9.5
|
- ^9.5
|
||||||
- ^10.4
|
- ^10.4
|
||||||
|
security-test:
|
||||||
|
name: "PHP Security test"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-version:
|
||||||
|
- 7.4
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: "Install PHP"
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
- name: "Cache dependencies installed with composer"
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
key: "php${{ matrix.php-version }}
|
||||||
|
-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
|
path: ~/.composer/cache
|
||||||
|
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
||||||
|
- name: "Install Composer dependencies"
|
||||||
|
run: "composer install --no-progress"
|
||||||
|
- name: "Run PHP Security test"
|
||||||
|
run: "composer ci:security"
|
||||||
|
|
|
@ -39,9 +39,10 @@
|
||||||
"nimut/testing-framework": "^5.0.3",
|
"nimut/testing-framework": "^5.0.3",
|
||||||
"phpunit/phpunit": "^7.5.20",
|
"phpunit/phpunit": "^7.5.20",
|
||||||
"squizlabs/php_codesniffer": "^3.5.5",
|
"squizlabs/php_codesniffer": "^3.5.5",
|
||||||
"typo3/cms-fluid-styled-content": "^9.5 || 10.4",
|
"typo3/cms-fluid-styled-content": "^9.5 || ^10.4",
|
||||||
"seld/jsonlint": "^1.8",
|
"seld/jsonlint": "^1.8",
|
||||||
"phpdocumentor/reflection-docblock": "<= 5.1 || > 5.2"
|
"phpdocumentor/reflection-docblock": "<= 5.1 || > 5.2",
|
||||||
|
"sensiolabs/security-checker": "^6.0"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"typo3-ter/tea": "self.version"
|
"typo3-ter/tea": "self.version"
|
||||||
|
@ -72,6 +73,7 @@
|
||||||
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
||||||
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
|
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
|
||||||
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';",
|
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';",
|
||||||
|
"ci:security": ".Build/vendor/bin/security-checker security:check",
|
||||||
"ci:tests": [
|
"ci:tests": [
|
||||||
"@ci:tests:unit",
|
"@ci:tests:unit",
|
||||||
"@ci:tests:functional"
|
"@ci:tests:functional"
|
||||||
|
|
Loading…
Reference in a new issue