This is an automated email from the ASF dual-hosted git repository.

viirya pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-connect-gateway.git

commit 9df079898de0a96ce8dfa224c60bd3c72cad0ab4
Author: Liang-Chi Hsieh <[email protected]>
AuthorDate: Tue Aug 11 13:20:46 2026 -0700

    Add license header checking
    
    Enforce the Apache-2.0 source header on every tracked source file via
    apache/skywalking-eyes, driven by .github/.licenserc.yaml and run in a
    dedicated GitHub Actions workflow. Ignore list covers docs, generated Helm
    NOTES, lockfiles, and build artifacts. dev/.rat-excludes mirrors the ignore
    set for Apache RAT release audits.
    
    The skywalking-eyes action is pinned to the v0.8.0 commit SHA.
    
    Co-authored-by: Claude Code
---
 .github/.licenserc.yaml       | 40 ++++++++++++++++++++++++++++++++++++++
 .github/workflows/license.yml | 45 +++++++++++++++++++++++++++++++++++++++++++
 dev/.rat-excludes             | 12 ++++++++++++
 3 files changed, 97 insertions(+)

diff --git a/.github/.licenserc.yaml b/.github/.licenserc.yaml
new file mode 100644
index 0000000..f936372
--- /dev/null
+++ b/.github/.licenserc.yaml
@@ -0,0 +1,40 @@
+# 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.
+
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+
+  paths-ignore:
+    - "LICENSE"
+    - "NOTICE"
+    - ".asf.yaml"
+    - ".gitignore"
+    - ".gitattributes"
+    - "**/.helmignore"
+    - "**/*.md"
+    - "**/*.json"
+    # Generated Helm NOTES shown to users on install
+    - "deploy/helm/**/templates/NOTES.txt"
+    # PR template
+    - ".github/PULL_REQUEST_TEMPLATE"
+    # Rust build artifacts and lockfile
+    - "target"
+    - "Cargo.lock"
+
+  comment: on-failure
diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml
new file mode 100644
index 0000000..084a116
--- /dev/null
+++ b/.github/workflows/license.yml
@@ -0,0 +1,45 @@
+# 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
+
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+permissions:
+  contents: read
+
+jobs:
+  check-license-header:
+    name: Check license header
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Check license header
+        uses: 
apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0
+        with:
+          config: .github/.licenserc.yaml
diff --git a/dev/.rat-excludes b/dev/.rat-excludes
new file mode 100644
index 0000000..4c7d6b2
--- /dev/null
+++ b/dev/.rat-excludes
@@ -0,0 +1,12 @@
+target
+Cargo.lock
+.gitignore
+.gitattributes
+.helmignore
+.rat-excludes
+.*md
+.*json
+LICENSE
+NOTICE
+PULL_REQUEST_TEMPLATE
+NOTES.txt


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to