Skip to content
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions .github/workflows/rat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:

- name: Download Apache RAT
run: |
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
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.18/apache-rat-0.18-bin.tar.gz
tar -xzf apache-rat-0.18-bin.tar.gz

- name: Run RAT
run: |
java -jar apache-rat-0.17/apache-rat-0.17.jar -d . -E .rat-excludes > rat-report.txt
java -jar apache-rat-0.18/apache-rat-0.18.jar -d . -E .rat-excludes > rat-report.txt
cat rat-report.txt
# Fail if unapproved licenses are found
grep -qe '^\s*Unapproved:\s*0\s*A count of unapproved licenses.$' rat-report.txt && exit 0 || exit 1
Loading