Commit e96d57b
authored
Add filtering cve related with APIP (#411)
| Q | A
|-----------------|-----
| Branch? | 1.0
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
## Summary
Fix CI build by adding CVE filtering to composer audit ignore list and
updating security check workflow.
## Changes
1. **composer.json** - Added CVE advisories to `config.audit.ignore`:
- `PKSA-gs8r-6kz6-pp56` (api-platform/core CVE-2025-31485)
- `PKSA-gnn4-pxdg-q76m` (api-platform/core CVE-2025-31481)
- `PKSA-yhcn-xrg3-68b1` (twig/twig CVE-2024-45411)
- `PKSA-2wrf-1xmk-1pky` (twig/twig CVE-2024-51755)
- `PKSA-365x-2zjk-pt47` (symfony/http-foundation CVE-2025-64500)
2. **AUDIT-IGNORE.md** - Created documentation file explaining why each
CVE is ignored (following pattern from Sylius/Sylius#18553)
3. **build.yaml** - Changed security check command from `symfony
security:check` to `composer audit --locked --abandoned=ignore`
## Why switch from `symfony security:check` to `composer audit`?
**Official Symfony documentation recommends `composer audit` for CI:**
> "In continuous integration services you can check security
vulnerabilities by running the `composer audit` command."
>
> Source:
https://symfony.com/doc/current/setup.html#checking-security-vulnerabilities
**Key advantages:**
- ✅ `composer audit` respects ignore configuration in `composer.json`
- ✅ Built into Composer 2.4+ - no need to install Symfony CLI in CI
- ✅ Allows selective ignoring of specific CVEs with justification
- ❌ `symfony security:check` has NO support for ignore configuration
- ❌ Would require `continue-on-error: true` (ignores ALL errors, not
just known CVEs)
Following the same approach as:
- Sylius/Sylius#18553
- Sylius/Sylius#18549
- Sylius/AdyenPlugin#1723 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
0 commit comments