From 67472277138c13f072448cd84672f295270d2aa4 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Mon, 16 Jun 2025 06:37:39 -0400 Subject: [PATCH 1/5] Add license header check to CI --- .github/workflows/license.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/license.yml diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 000000000..c851bff31 --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,39 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: license + +# trigger for all PRs and changes to main +on: + push: + branches: + - main + pull_request: + +jobs: + + rat: + name: Release Audit Tool (RAT) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.8 + - name: Audit licenses + run: ./dev/release/run-rat.sh . From c48563828ed3a4fff82df2136d5b43f501e6e3ce Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 17 Jun 2025 10:11:58 -0400 Subject: [PATCH 2/5] =?UTF-8?q?exclude=20rat.txt=20=F0=9F=A4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rat_exclude_files.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 rat_exclude_files.txt diff --git a/rat_exclude_files.txt b/rat_exclude_files.txt new file mode 100644 index 000000000..010e2af9e --- /dev/null +++ b/rat_exclude_files.txt @@ -0,0 +1 @@ +rat.txt From 21a79c06bbbc2e9317c3acf736d03ad17e497f76 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 17 Jun 2025 10:12:56 -0400 Subject: [PATCH 3/5] again --- rat_exclude_files.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rat_exclude_files.txt b/rat_exclude_files.txt index 010e2af9e..c439e2d3a 100644 --- a/rat_exclude_files.txt +++ b/rat_exclude_files.txt @@ -1 +1,2 @@ -rat.txt +./rat.txt +./rat_exclude_files.txt From 8dc8b67f2856f3ab591f38fed1cff88f46f0b1e9 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 17 Jun 2025 10:19:54 -0400 Subject: [PATCH 4/5] again --- dev/release/rat_exclude_files.txt | 11 ++++++----- rat_exclude_files.txt | 2 -- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 rat_exclude_files.txt diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt index 562eec2f1..190d944b8 100644 --- a/dev/release/rat_exclude_files.txt +++ b/dev/release/rat_exclude_files.txt @@ -1,7 +1,8 @@ -# Files to exclude from the Apache Rat (license) check -.gitignore -.tool-versions +./.tool-versions +target/* +**.gitignore +rat.txt dev/release/rat_exclude_files.txt -fuzz/.gitignore sqlparser_bench/img/flamegraph.svg - +**Cargo.lock +filtered_rat.txt diff --git a/rat_exclude_files.txt b/rat_exclude_files.txt deleted file mode 100644 index c439e2d3a..000000000 --- a/rat_exclude_files.txt +++ /dev/null @@ -1,2 +0,0 @@ -./rat.txt -./rat_exclude_files.txt From 5d706214ec35aa6762691fe8ecaf79fca6469d67 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 17 Jun 2025 10:20:50 -0400 Subject: [PATCH 5/5] gg --- dev/release/rat_exclude_files.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt index 190d944b8..280b1bce6 100644 --- a/dev/release/rat_exclude_files.txt +++ b/dev/release/rat_exclude_files.txt @@ -1,4 +1,4 @@ -./.tool-versions +.tool-versions target/* **.gitignore rat.txt