Skip to content

Commit ee9ba38

Browse files
committed
fix:codeql scan Security issue
1 parent b7007cd commit ee9ba38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/scripts/checkstyle-pr.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ for module in "${!module_files[@]}"; do
129129
echo " ⚠️ not found: $include"; \
130130
fi; \
131131
done && \
132-
mvn -f "$PROJECT_ROOT/pom.xml" checkstyle:check \
132+
mvn -f "$PROJECT_ROOT/pom.xml" -pl "$module" checkstyle:check \
133133
-Dcheckstyle.config.location="$PROJECT_ROOT/checkstyle/code-check-checkstyle.xml" \
134134
-Dcheckstyle.violationSeverity=warning \
135135
-Dcheckstyle.outputFormat=xml \
@@ -158,7 +158,7 @@ for module in "${!module_files[@]}"; do
158158
# (可选)生成 HTML 报告供人工查看
159159
echo " - 生成 HTML 报告(可选)..."
160160
set +e
161-
(cd "$module" && mvn -f "$PROJECT_ROOT/pom.xml" checkstyle:checkstyle \
161+
(cd "$module" && mvn -f "$PROJECT_ROOT/pom.xml" -pl "$module" checkstyle:checkstyle \
162162
-Dcheckstyle.config.location="$PROJECT_ROOT/checkstyle/code-check-checkstyle.xml" \
163163
-Dcheckstyle.includes="$file_list" \
164164
-Dcheckstyle.violationSeverity=warning) > /dev/null 2>&1

0 commit comments

Comments
 (0)