We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce52186 commit 04501f8Copy full SHA for 04501f8
.github/workflows/rat.yaml
@@ -28,9 +28,21 @@ jobs:
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
30
31
+ - name: Create exception list
32
+ run: |
33
+ cat << EOF >exception.lst
34
+./exception.lst
35
+./CHANGES.md
36
+./go.sum
37
+./rat-report.txt
38
+./apache-rat-0.16.1/**
39
+./snap/snapcraft.yaml
40
+./vedor/**
41
+EOF
42
+
43
- name: Run RAT
44
run: |
- java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -e vendor > rat-report.txt
45
+ java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E exception.lst > rat-report.txt
46
cat rat-report.txt
47
# Fail if unapproved licenses are found
48
grep -q 'Unknown Licenses' rat-report.txt && exit 1 || exit 0
0 commit comments