File tree Expand file tree Collapse file tree 3 files changed +67
-33
lines changed
Expand file tree Collapse file tree 3 files changed +67
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ build/*
2+ build-debug/*
3+ build-release/*
4+ test_data/*
5+ third_party/*
6+ build_support/*
7+ scripts/*
8+ cmake_modules/*
9+ .codespell_ignore
10+ .gitignore
11+ rat-report.txt
12+ requirements.txt
13+ .gitattributes
14+ .*\.svg$
Original file line number Diff line number Diff line change 1+ # Copyright 2025-present Alibaba Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ name : License Check
16+
17+ on :
18+ pull_request :
19+ push :
20+ branches :
21+ - main
22+
23+ jobs :
24+ rat-check :
25+ runs-on : ubuntu-latest
26+
27+ steps :
28+ - name : Checkout code
29+ uses : actions/checkout@v4
30+
31+ - name : Set up Java
32+ uses : actions/setup-java@v4
33+ with :
34+ distribution : ' temurin'
35+ java-version : ' 17'
36+
37+ - name : Download Apache Rat jar
38+ run : |
39+ wget https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.16.1/apache-rat-0.16.1.jar -O rat.jar
40+
41+ - name : Run Apache Rat
42+ run : |
43+ java -jar rat.jar -E .github/.rat-excludes -d . > rat-report.txt
44+ - name : Check for Unapproved Licenses
45+ run : |
46+ if grep "Files with unapproved licenses" rat-report.txt; then
47+ echo "❌ Found files with unapproved licenses!"
48+ cat rat-report.txt
49+ exit 1
50+ else
51+ echo "✅ All files have approved licenses."
52+ cat rat-report.txt
53+ fi
You can’t perform that action at this time.
0 commit comments