Skip to content

Commit c8b7bda

Browse files
author
Daan Hoogland
committed
rat cli and exclude list syntax fix
1 parent 7def880 commit c8b7bda

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/rat.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,9 @@ jobs:
2828
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.16.1/apache-rat-0.16.1-bin.tar.gz
2929
tar -xzf apache-rat-0.16.1-bin.tar.gz
3030
31-
- name: Create exception list
32-
run: |
33-
echo ./exception.lst >exception.lst
34-
echo ./CHANGES.md >>exception.lst
35-
echo ./go.sum >>exception.lst
36-
echo ./rat-report.txt >>exception.lst
37-
echo ./apache-rat-0.16.1/* >>exception.lst
38-
echo ./snap/snapcraft.yaml >>exception.lst
39-
echo ./vedor/* >>exception.lst
40-
4131
- name: Run RAT
4232
run: |
43-
java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E exception.lst > rat-report.txt
33+
java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E .rat-exceptions > rat-report.txt
4434
cat rat-report.txt
4535
# Fail if unapproved licenses are found
46-
grep -q 'Unknown Licenses' rat-report.txt && exit 1 || exit 0
36+
grep -qe '^0 Unknown Licenses' rat-report.txt && exit 0 || exit 1

0 commit comments

Comments
 (0)