@@ -5,28 +5,19 @@ How to Check for Known Security Vulnerabilities in Your Dependencies
5
5
====================================================================
6
6
7
7
When using lots of dependencies in your Symfony projects, some of them may
8
- contain security vulnerabilities. That's why Symfony provides a command called
9
- ``security:check `` that checks your ``composer.lock `` file to find any known
10
- security vulnerability in your installed dependencies.
11
-
12
- First, install the security checker in your project:
13
-
14
- .. code-block :: terminal
15
-
16
- # require at least the 5.0 version of the package because older versions
17
- # checked the security vulnerabilities using a URL that is no longer available
18
- $ composer require sensiolabs/security-checker:^5.0
19
-
20
- Then run this command:
8
+ contain security vulnerabilities. That's why the :doc: `Symfony local server </setup/symfony_server >`
9
+ includes a command called ``security:check `` that checks your ``composer.lock ``
10
+ file to find known security vulnerabilities in your installed dependencies:
21
11
22
12
.. code-block :: terminal
23
13
24
- $ php bin/console security:check
14
+ $ symfony security:check
25
15
26
16
A good security practice is to execute this command regularly to be able to
27
- update or replace compromised dependencies as soon as possible. Internally,
28
- this command uses the public `security advisories database `_ published by the
29
- FriendsOfPHP organization.
17
+ update or replace compromised dependencies as soon as possible. The security
18
+ check is done locally by cloning the `security advisories database `_ published
19
+ by the FriendsOfPHP organization, so your ``composer.lock `` file is not sent on
20
+ the network.
30
21
31
22
.. tip ::
32
23
@@ -35,11 +26,4 @@ FriendsOfPHP organization.
35
26
This way you can add it to your project build process and your continuous
36
27
integration workflows to make them fail when there are vulnerabilities.
37
28
38
- .. tip ::
39
-
40
- The security checker is also available as an independent console application
41
- and distributed as a PHAR file so you can use it in any PHP application.
42
- Check out the `Security Checker repository `_ for more details.
43
-
44
29
.. _`security advisories database` : https://github.com/FriendsOfPHP/security-advisories
45
- .. _`Security Checker repository` : https://github.com/sensiolabs/security-checker
0 commit comments