Skip to content

Commit be30697

Browse files
authored
Add license header check to CI (#1888)
1 parent 6f42396 commit be30697

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

.github/workflows/license.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: license
19+
20+
# trigger for all PRs and changes to main
21+
on:
22+
push:
23+
branches:
24+
- main
25+
pull_request:
26+
27+
jobs:
28+
29+
rat:
30+
name: Release Audit Tool (RAT)
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Setup Python
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: 3.8
38+
- name: Audit licenses
39+
run: ./dev/release/run-rat.sh .

dev/release/rat_exclude_files.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Files to exclude from the Apache Rat (license) check
2-
.gitignore
31
.tool-versions
2+
target/*
3+
**.gitignore
4+
rat.txt
45
dev/release/rat_exclude_files.txt
5-
fuzz/.gitignore
66
sqlparser_bench/img/flamegraph.svg
7-
7+
**Cargo.lock
8+
filtered_rat.txt

0 commit comments

Comments
 (0)