Skip to content

Commit 11a6f55

Browse files
committed
Upgrade 'okio' dependency in plugin classpath
The dependency 'com.squareup.okio:okio:3.0.0', brought in by the 'com.github.breadmoirai.github-release' plugin, has a known vulnerability. The vulnerability is fixed in v3.4.0.
1 parent fc85920 commit 11a6f55

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/gradle.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,3 @@ jobs:
8585
name: plugin-json
8686
path: build/reports/dependency-graph-snapshots/plugin-self-test.json
8787
if-no-files-found: error
88-

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jackson-kotlin = { group = "com.fasterxml.jackson.module", name = "jackson-modul
1111
apache-commons-io = { group = "commons-io", name = "commons-io", version = "2.15.1" }
1212

1313
github-packageurl = { group = "com.github.package-url", name = "packageurl-java", version = "1.5.0" }
14+
okio = { group = "com.squareup.okio", name = "okio", version = "3.4.0" }
1415

1516
### Test dependencies
1617

plugin/build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
55
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
66
import java.util.jar.JarFile
77

8+
// Upgrade transitive dependencies in plugin classpath
9+
buildscript {
10+
repositories {
11+
gradlePluginPortal()
12+
}
13+
dependencies {
14+
constraints {
15+
// The plugin com.github.breadmoirai.github-release:2.5.2 has dependency on com.squareup.okio:okio:3.0.0
16+
// which has reported vulnerability CVE-2023-3635. Use a newer version.
17+
classpath(libs.okio)
18+
}
19+
}
20+
}
21+
822
plugins {
923
kotlin("jvm") version(libs.versions.kotlin)
1024
alias(libs.plugins.plugin.publish)

0 commit comments

Comments
 (0)