Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add md file with description ignored CVE and fix format#18553

Merged
Rafikooo merged 1 commit into
Sylius:1.14from
michalkaczmarek-bitbag:CI-fix-build-full-1.14
Nov 17, 2025
Merged

Add md file with description ignored CVE and fix format#18553
Rafikooo merged 1 commit into
Sylius:1.14from
michalkaczmarek-bitbag:CI-fix-build-full-1.14

Conversation

@michalkaczmarek-bitbag
Copy link
Copy Markdown
Contributor

@michalkaczmarek-bitbag michalkaczmarek-bitbag commented Nov 17, 2025

Q A
Branch? 1.14
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets #18549
License MIT

Details in file AUDIT-IGNORE.md

@michalkaczmarek-bitbag michalkaczmarek-bitbag requested a review from a team as a code owner November 17, 2025 11:01
@probot-autolabeler probot-autolabeler Bot added the Maintenance CI configurations, READMEs, releases, etc. label Nov 17, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Nov 17, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 17, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands:

  • 🚀 /bns:deploy to redeploy the environment

@Rafikooo Rafikooo merged commit c7cb75f into Sylius:1.14 Nov 17, 2025
50 of 51 checks passed
Rafikooo added a commit to michalkaczmarek-bitbag/InvoicingPlugin that referenced this pull request Nov 20, 2025
- Add comprehensive CVE ignore list to composer.json (API Platform, Twig, Symfony)
- Create AUDIT-IGNORE.md with detailed CVE documentation
- Replace symfony security:check with composer audit --locked --abandoned=ignore

The symfony security:check command doesn't respect composer.json ignore configuration,
causing CI failures despite CVE advisories being intentionally ignored. Switching to
composer audit ensures the ignore list is properly respected.

Following patterns from:
- Sylius/Sylius#18553
- Sylius/Sylius#18549
- Sylius/AdyenPlugin#172
Rafikooo added a commit to michalkaczmarek-bitbag/InvoicingPlugin that referenced this pull request Nov 20, 2025
- Add comprehensive CVE ignore list to composer.json (API Platform, Twig, Symfony)
- Create AUDIT-IGNORE.md with detailed CVE documentation
- Replace symfony security:check with composer audit --locked --abandoned=ignore

The symfony security:check command doesn't respect composer.json ignore configuration,
causing CI failures despite CVE advisories being intentionally ignored. Switching to
composer audit ensures the ignore list is properly respected.

Following patterns from:
- Sylius/Sylius#18553
- Sylius/Sylius#18549
- Sylius/AdyenPlugin#172
GSadee added a commit to Sylius/InvoicingPlugin that referenced this pull request Nov 20, 2025
| 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#172
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI configurations, READMEs, releases, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants