-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
811b9cb
commit 0691584
Showing
6 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/*.phar | ||
.idea/ | ||
/release-changelog*.md | ||
/local-php-security-checker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
#!/usr/bin/env bash | ||
# Tests the composer.lock file against the SensioLabs security checker. | ||
# Tests the composer.lock file using fabpot/local-php-security-checker. | ||
# This must be run from the repository root. | ||
|
||
curl -H 'Accept: text/plain' https://security.symfony.com/check_lock -F lock=@./composer.lock | ||
cmd=local-php-security-checker | ||
|
||
if [ -f ./local-php-security-checker ]; then | ||
cmd=./local-php-security-checker | ||
elif ! command -v local-php-security-checker >/dev/null; then | ||
url=https://github.com/fabpot/local-php-security-checker/releases/download/v1.2.0/local-php-security-checker_1.2.0_linux_amd64 | ||
echo >&2 "Downloading security checker from $url" | ||
curl -sfSL "$url" > ./local-php-security-checker | ||
chmod +x ./local-php-security-checker | ||
cmd=./local-php-security-checker | ||
fi | ||
|
||
$cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ | |
*/ | ||
|
||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
error_reporting(E_ALL); | ||
ini_set('display_errors', 'stderr'); |