Skip to content

Commit 86fb0e4

Browse files
DaanHooglandDaan Hoogland
andauthored
Upgrade Apache RAT to version 0.17 (apache#254)
* Upgrade Apache RAT to version 0.17 * Update RAT version in workflow configuration * update excludes file * proper regular expression --------- Co-authored-by: Daan Hoogland <[email protected]>
1 parent 01840be commit 86fb0e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/rat.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525

2626
- name: Download Apache RAT
2727
run: |
28-
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.16.1/apache-rat-0.16.1-bin.tar.gz
29-
tar -xzf apache-rat-0.16.1-bin.tar.gz
28+
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.17/apache-rat-0.17-bin.tar.gz
29+
tar -xzf apache-rat-0.17-bin.tar.gz
3030
3131
- name: Run RAT
3232
run: |
33-
java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E .rat-excludes > rat-report.txt
33+
java -jar apache-rat-0.17/apache-rat-0.17.jar -d . -E .rat-excludes > rat-report.txt
3434
cat rat-report.txt
3535
# Fail if unapproved licenses are found
36-
grep -qe '^0 Unknown Licenses' rat-report.txt && exit 0 || exit 1
36+
grep -qe '^\s*Unapproved:\s*0\s*A count of unapproved licenses.$' rat-report.txt && exit 0 || exit 1

.rat-excludes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CHANGELOG.md
22
CONTRIBUTING.md
33
go.sum
44
rat-report.txt
5-
apache-rat-0.16.1
5+
apache-rat-0.17
66
.gitignore
77
.rat-excludes
88
.terraform-registry

0 commit comments

Comments
 (0)