Skip to content

Commit

Permalink
chore(composer): Also run with "--no-audit" to save some time
Browse files Browse the repository at this point in the history
Avoid running the security audit. This is the responsibility of the
ORT advisor.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Dec 11, 2024
1 parent e39d798 commit 40ea8dd
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions plugins/package-managers/composer/src/main/kotlin/Composer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,15 @@ class Composer(
if (hasLockfile) return lockfile

val composerVersion = Semver(getVersion(workingDir))
val args = listOfNotNull(
"update",
"--ignore-platform-reqs",
"--no-install".takeIf { composerVersion.major >= 2 }
)
val args = buildList {
add("update")
add("--ignore-platform-reqs")

if (composerVersion.major >= 2) {
add("--no-install")
add("--no-audit")
}
}

run(workingDir, *args.toTypedArray()).requireSuccess()

Expand Down

0 comments on commit 40ea8dd

Please sign in to comment.