Skip to content

Commit

Permalink
Properly ban javax.inject usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo authored and electrum committed Jun 7, 2023
1 parent f769e9d commit 9336c2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,13 @@
<groupId>io.trino.tpcds</groupId>
<artifactId>tpcds</artifactId>
<version>1.4</version>
<exclusions>
<!-- not used in the runtime -->
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down Expand Up @@ -2043,11 +2050,11 @@
<exclude>org.apache.logging.log4j:log4j-core</exclude>
<!-- 1.x versions are banned due to https://www.cve.org/CVERecord?id=CVE-2022-1471 -->
<exclude>org.yaml:snakeyaml</exclude>
<exclude>javax.inject:javax.inject:*</exclude>
</excludes>
<includes combine.children="append">
<!-- 2.x versions are not affected by CVE-2022-1471 -->
<include>org.yaml:snakeyaml:2.0</include>
<include>javax.inject:inject:*</include>
</includes>
</bannedDependencies>
<requireProfileIdsExist />
Expand Down

0 comments on commit 9336c2b

Please sign in to comment.