Skip to content

Commit 734a502

Browse files
authored
[Chore][CI] Fix owasp dependency check (#17296)
1 parent 5cd09b4 commit 734a502

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/owasp-dependency-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
- uses: actions/checkout@v4
4040
with:
4141
submodules: true
42-
- name: Set up JDK 8
42+
- name: Set up JDK 11
4343
uses: actions/setup-java@v4
4444
with:
45-
java-version: 8
45+
java-version: 11
4646
distribution: 'adopt'
4747
- name: Run OWASP Dependency Check
4848
run: |

pom.xml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<jacoco.skip>false</jacoco.skip>
8686
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
8787
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
88-
<owasp-dependency-check-maven.version>10.0.2</owasp-dependency-check-maven.version>
88+
<owasp-dependency-check-maven.version>12.1.3</owasp-dependency-check-maven.version>
8989
<lombok.version>1.18.20</lombok.version>
9090
<awaitility.version>4.2.0</awaitility.version>
9191
<truth.version>1.4.2</truth.version>
@@ -583,10 +583,6 @@
583583
</pluginManagement>
584584

585585
<plugins>
586-
<plugin>
587-
<groupId>org.owasp</groupId>
588-
<artifactId>dependency-check-maven</artifactId>
589-
</plugin>
590586
<plugin>
591587
<groupId>org.apache.maven.plugins</groupId>
592588
<artifactId>maven-release-plugin</artifactId>
@@ -878,5 +874,19 @@
878874
</plugins>
879875
</build>
880876
</profile>
877+
<profile>
878+
<id>jdk-11</id>
879+
<activation>
880+
<jdk>11</jdk>
881+
</activation>
882+
<build>
883+
<plugins>
884+
<plugin>
885+
<groupId>org.owasp</groupId>
886+
<artifactId>dependency-check-maven</artifactId>
887+
</plugin>
888+
</plugins>
889+
</build>
890+
</profile>
881891
</profiles>
882892
</project>

0 commit comments

Comments
 (0)