Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/rat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:

- name: Download Apache RAT
run: |
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.16.1/apache-rat-0.16.1-bin.tar.gz
tar -xzf apache-rat-0.16.1-bin.tar.gz
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.17/apache-rat-0.17-bin.tar.gz
tar -xzf apache-rat-0.17-bin.tar.gz

- name: Run RAT
run: |
java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E .rat-excludes > rat-report.txt
java -jar apache-rat-0.17/apache-rat-0.17.jar -d . -E .rat-excludes > rat-report.txt
cat rat-report.txt
# Fail if unapproved licenses are found
grep -qe '^0 Unknown Licenses' rat-report.txt && exit 0 || exit 1
grep -qe '^\s*Unapproved:\s*0\s*A count of unapproved licenses.$' rat-report.txt && exit 0 || exit 1
8 changes: 4 additions & 4 deletions .rat-excludes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.rat-excludes
CHANGES.md
apache-rat-0.17
go.sum
rat-report.txt
apache-rat-0.16.1
snapcraft.yaml
vendor
.rat-excludes
/snap/snapcraft.yaml
vendor