Skip to content

Commit 2a474de

Browse files
authored
docs: more explanations about the security job (#159)
1 parent f18852c commit 2a474de

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

SECURITY.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,28 @@ To do so you can cherry-pick the patch that was applied to the main branch to fi
3636
the security issue.
3737
All security related patches commits are prefixed by `security:`.
3838

39-
Thank you for helping us keep your open-source project secure!
39+
Thank you for helping us keep your open-source project secure!
40+
41+
42+
## Checking Vulnerabilities (GitHub actions)
43+
44+
A GitHub action runs the `composer audit` command.
45+
When the job finds a security vulnerability, it fails with an output like this:
46+
47+
Run composer audit
48+
Found 1 security vulnerability advisory affecting 1 package:
49+
+-------------------+----------------------------------------------------------------------------------+
50+
| Package | twig/twig |
51+
| Severity | medium |
52+
| CVE | CVE-2025-24374 |
53+
| Title | Twig security issue where escaping was missing when using null coalesce operator |
54+
| URL | https://github.com/advisories/GHSA-3xg3-cgvq-2xwr |
55+
| Affected versions | >=3.16.0,<3.19.0 |
56+
| Reported at | 2025-01-29T18:41:43+00:00 |
57+
+-------------------+----------------------------------------------------------------------------------+
58+
Error: Process completed with exit code 1
59+
60+
In this case, the `twig/twig` dependency has to be updated to fix the error.
61+
You have to run:
62+
63+
composer up twig/twig

0 commit comments

Comments
 (0)