Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit with non-zero code if post-install audit fails #11362

Merged
merged 1 commit into from Mar 15, 2023

Conversation

IonBazan
Copy link
Contributor

@IonBazan IonBazan commented Mar 3, 2023

Fixes #11357 by adding a new ERROR_AUDIT_FAILED = 5 exit code used when running composer install --audit.

@Seldaek Seldaek added this to the 2.6 milestone Mar 15, 2023
@Seldaek Seldaek merged commit 0ba7e0d into composer:main Mar 15, 2023
@Seldaek
Copy link
Member

Seldaek commented Mar 15, 2023

Thanks

@vtsykun
Copy link
Contributor

vtsykun commented Sep 1, 2023

Hi, this feature affect on composer create-project and composer require commands, we use this commands in out CI to deploy packages to our customers and now they fail with status code 5.

On the one hand, this feature is good for security, but it is also BC, if Composer following Backward Compatibility Promise between minor releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

composer install --audit does not exit non-zero if issues found
3 participants