This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new faff3b0b33b Refactor : fix the sonar hashFiles method (#33875)
faff3b0b33b is described below
commit faff3b0b33b82d58618997d8b455b5c6d3f78962
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Mon Dec 2 10:41:22 2024 +0800
Refactor : fix the sonar hashFiles method (#33875)
---
.github/workflows/nightly-check.yml | 2 +-
pom.xml | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/nightly-check.yml
b/.github/workflows/nightly-check.yml
index f64b8aa2676..2005cca4de5 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -67,7 +67,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.m2/repository
- key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-${{ hashFiles('pom.xml','*/pom.xml') }}
restore-keys: |
${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
- name: Aggregate checkstyle report
diff --git a/pom.xml b/pom.xml
index b5c5a366841..3b66a277295 100644
--- a/pom.xml
+++ b/pom.xml
@@ -197,6 +197,7 @@
<jdepend-maven-plugin.version>2.0</jdepend-maven-plugin.version>
<taglist-maven-plugin.version>2.4</taglist-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
+ <dependency-check-maven.version>10.0.3</dependency-check-maven.version>
</properties>
<dependencyManagement>
@@ -844,6 +845,11 @@
<aggregate>true</aggregate>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.owasp</groupId>
+ <artifactId>dependency-check-maven</artifactId>
+ <version>${dependency-check-maven.version}</version>
+ </plugin>
</plugins>
</pluginManagement>