Skip to content

Commit 04501f8

Browse files
authored
exception list for rat
1 parent ce52186 commit 04501f8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/rat.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,21 @@ 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+
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+
3143
- name: Run RAT
3244
run: |
33-
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
3446
cat rat-report.txt
3547
# Fail if unapproved licenses are found
3648
grep -q 'Unknown Licenses' rat-report.txt && exit 1 || exit 0

0 commit comments

Comments
 (0)