From a20d4e368886f192c61d15f2bdb75069baceb8c3 Mon Sep 17 00:00:00 2001 From: Jozef Marko Date: Thu, 21 Nov 2024 13:51:02 +0100 Subject: [PATCH] Use apache-rat v0.16.1 --- .github/workflows/ci_check_license_headers.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_check_license_headers.yaml b/.github/workflows/ci_check_license_headers.yaml index 363e014d11..f3b13afc15 100644 --- a/.github/workflows/ci_check_license_headers.yaml +++ b/.github/workflows/ci_check_license_headers.yaml @@ -33,10 +33,8 @@ jobs: - name: Download Apache RAT run: | - curl -LO https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/0.17-SNAPSHOT/apache-rat-0.17-20241115.065104-374.jar + curl -LO https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.16.1/apache-rat-0.16.1.jar - name: Run Apache RAT run: | - java -jar apache-rat-0.17-20241115.065104-374.jar --input-exclude-file .rat-excludes -- . > .tmp-rat-check-output - cat .tmp-rat-check-output - grep "Files with unapproved licenses:" .tmp-rat-check-output && rm .tmp-rat-check-output && echo "There are files with missing or unapproved license headers." && exit 1 || rm .tmp-rat-check-output && echo "All files have correct license headers." \ No newline at end of file + java -jar apache-rat-0.16.1.jar -d . -E .rat-excludes | grep "== File:" && echo "The files listed above are missing license headers." && exit 1 || echo "All files have license headers."