File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments