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

bharos pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino-mcp-gateway.git


The following commit(s) were added to refs/heads/main by this push:
     new b1452e8  [MINOR] ci: Check the license headers (#17)
b1452e8 is described below

commit b1452e8664a50ae70f689076baacbe774309fcda
Author: Bharath Krishna <[email protected]>
AuthorDate: Thu Nov 19 09:27:33 2026 -0800

    [MINOR] ci: Check the license headers (#17)
    
    CI checks that every file has the Apache license header, with Apache
    SkyWalking Eyes. .licenserc.yaml lists the files that can't carry one;
    the docs state the license in their front matter, as Apache Gravitino's
    do. The README shows how to run the check locally.
---
 .github/workflows/ci.yml | 15 +++++++++++++++
 .licenserc.yaml          | 34 ++++++++++++++++++++++++++++++++++
 README.md                |  7 +++++++
 3 files changed, 56 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 128d4c0..e9578be 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,6 +39,21 @@ env:
   SOURCES: mcp_gateway mcp_gateway_cli mcp_gateway_sdk tests
 
 jobs:
+  license:
+    name: License headers
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+    steps:
+      - uses: actions/checkout@v7
+        with:
+          persist-credentials: false
+      - name: Check license headers
+        # Configured in .licenserc.yaml.
+        uses: apache/skywalking-eyes/[email protected]
+        with:
+          # Report in the job log, not as pull request comments.
+          token: ""
+
   test:
     name: Unit tests and lint
     runs-on: ubuntu-latest
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 0000000..9f65037
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,34 @@
+#
+# 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.
+#
+
+
+# The license header check that CI runs: 
https://github.com/apache/skywalking-eyes
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+  paths-ignore:
+    # Files that can't carry a header. The docs state the license in their 
front matter.
+    - ".github/PULL_REQUEST_TEMPLATE"
+    - ".python-version"
+    - "docs/**/*.md"
+    - "LICENSE"
+    - "LICENSE.bin"
+    - "NOTICE"
+    - "NOTICE.bin"
+    - "uv.lock"
+  comment: never
diff --git a/README.md b/README.md
index a9236be..5767db8 100644
--- a/README.md
+++ b/README.md
@@ -207,6 +207,13 @@ uvx isort==9.0.0 --check-only mcp_gateway mcp_gateway_cli 
mcp_gateway_sdk tests
 uv run pylint mcp_gateway mcp_gateway_cli mcp_gateway_sdk tests
 ```
 
+Every file needs the Apache license header, except those `.licenserc.yaml` 
lists.
+Check them with:
+
+```bash
+docker run --rm -v "$(pwd)":/github/workspace apache/skywalking-eyes:0.9.0 
header check
+```
+
 Build the Docker image with:
 
 ```bash

Reply via email to