diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c14dad31dc924..3379c815c2d43 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -14,7 +14,7 @@ antlr = "4.13.1" asciidoctorj = "2.5.10" asciidoctorjPdf = "2.3.9" clikt = "4.2.1" -commonsCompress = "1.24.0" +commonsCompress = "1.25.0" cvssCalculator = "1.4.2" cyclonedx = "8.0.3" diffUtils = "4.12" diff --git a/utils/common/src/main/kotlin/ArchiveUtils.kt b/utils/common/src/main/kotlin/ArchiveUtils.kt index b5635602894d8..fdbda6b89ebb0 100644 --- a/utils/common/src/main/kotlin/ArchiveUtils.kt +++ b/utils/common/src/main/kotlin/ArchiveUtils.kt @@ -266,7 +266,7 @@ fun InputStream.unpackTar(targetDirectory: File, filter: (ArchiveEntry) -> Boole * Unpack this [ArchiveInputStream] to the [targetDirectory], skipping all entries for which [shouldSkip] returns true, * and using what [mode] returns as the file mode bits. */ -private fun ArchiveInputStream.unpack( +private fun ArchiveInputStream.unpack( targetDirectory: File, shouldSkip: (ArchiveEntry) -> Boolean, mode: (ArchiveEntry) -> Int