-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Add COMPOSER_NO_AUDIT constant ? #635
Comments
I am not sure what the best default is here tbh. Just to be clear though: During updates the audit is will simply output some warning but not fail the build if there is a known vulnerability found. If you simply run install no audit is done by default. If you want to fail the build in case vulns are found, then you kinda need to explicitly call the audit command, in which case disabling the auto-audit on update may make sense. |
@Seldaek Thanks for pitching in - I'd been trying to get the Still, in CI scripts for packages which need to be cross-version compatible, a (selective) |
If you wanna test things you can require |
Although, it does not break the workflows. I will merge a PR for this now and let's see if we get feedback otherwise. I would not rely on audit check in the update/require steps as they do not fail on vulnerabilities in the current implementation, and in CI most people ignore the output of successful steps. So projects that want this functionality in CI should add a |
Thanks @shivammathur ! Let's wait & see for any feedback. |
Released in 2.22.0. |
Describe the feature
Composer 2.4.0 introduced a new "Audit" feature, which will run automatically on any
composer update
,require
,remove
andcreate-project
.This audit feature may break builds when security vulnerabilities are found.
As of Composer 2.4.1, a new
COMPOSER_NO_AUDIT
env variable is available to automatically apply the--no-audit
option to all commands which are subject to audits.I wonder if - similar to the previous addition of
COMPOSER_NO_INTERACTION
- this newCOMPOSER_NO_AUDIT
env variable should be turned on by default from within thesetup-php
action runner.What do you think ?
Refs:
--no-audit
. composer/composer#10998Version
v2
.Underlying issue
Builds in CI may start failing unexpectedly and unrelated to any changes made in a PR/branch due to the audit throwing something up.
Describe alternatives
Alternatively, people would need to add the
--no-audit
flag to their Composer commands themselves.Are you willing to submit a PR?
Happy to try.
The text was updated successfully, but these errors were encountered: