This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch exp_github_actions in repository https://gitbox.apache.org/repos/asf/flink.git
commit 2449f05d7201546ece7a0f348c0b9fda042c8afb Author: Chesnay Schepler <ches...@apache.org> AuthorDate: Sat Apr 2 11:03:17 2022 +0200 notice checker hardening --- .../java/org/apache/flink/tools/ci/licensecheck/NoticeFileChecker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ci/java-ci-tools/src/main/java/org/apache/flink/tools/ci/licensecheck/NoticeFileChecker.java b/tools/ci/java-ci-tools/src/main/java/org/apache/flink/tools/ci/licensecheck/NoticeFileChecker.java index 72830d76f14..475aff153cb 100644 --- a/tools/ci/java-ci-tools/src/main/java/org/apache/flink/tools/ci/licensecheck/NoticeFileChecker.java +++ b/tools/ci/java-ci-tools/src/main/java/org/apache/flink/tools/ci/licensecheck/NoticeFileChecker.java @@ -216,7 +216,8 @@ public class NoticeFileChecker { .filter( file -> { int nameCount = file.getNameCount(); - return file.getName(nameCount - 3).toString().equals("resources") + return nameCount >= 3 + && file.getName(nameCount - 3).toString().equals("resources") && file.getName(nameCount - 2).toString().equals("META-INF") && file.getName(nameCount - 1).toString().equals("NOTICE"); })