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

popduke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/bifromq.git


The following commit(s) were added to refs/heads/main by this push:
     new 73082426 1. add SkyWalking Eyes license check. (#139)
73082426 is described below

commit 7308242684b1a917221705c5f20180d8139a1b03
Author: Gu Jiawei <[email protected]>
AuthorDate: Wed Jun 4 11:01:53 2025 +0800

    1. add SkyWalking Eyes license check. (#139)
---
 .github/workflows/build-cov.yaml | 12 ++++++++++++
 .github/workflows/build-dev.yaml |  4 ++++
 .licenserc.yaml                  | 17 +++++++++++++++++
 3 files changed, 33 insertions(+)

diff --git a/.github/workflows/build-cov.yaml b/.github/workflows/build-cov.yaml
index 44cfe197..5abfd2c9 100644
--- a/.github/workflows/build-cov.yaml
+++ b/.github/workflows/build-cov.yaml
@@ -26,3 +26,15 @@ jobs:
         uses: coverallsapp/github-action@v2
         with:
           format: jacoco
+      - name: Fix License Header
+        uses: apache/skywalking-eyes/header@main
+        with:
+          mode: fix
+      - name: Apply Changes
+        uses: EndBug/add-and-commit@v4
+        env:
+           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          author_name: License Bot
+          author_email: [email protected]
+          message: 'Automatic application of license header'
diff --git a/.github/workflows/build-dev.yaml b/.github/workflows/build-dev.yaml
index d30c2b3b..1c889079 100644
--- a/.github/workflows/build-dev.yaml
+++ b/.github/workflows/build-dev.yaml
@@ -24,3 +24,7 @@ jobs:
         run: mvn install -pl testsuites -am
       - name: Build with Maven
         run: mvn clean verify -P build
+      - name: Check License Header
+        uses: apache/skywalking-eyes/header@main
+      - name: Check Dependencies' License
+        uses: apache/skywalking-eyes/dependency@main
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 00000000..3e426346
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,17 @@
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+
+  paths-ignore:
+    - 'dist'
+    - 'licenses'
+    - '**/*.md'
+    - 'LICENSE'
+    - 'NOTICE'
+
+  comment: on-failure
+
+dependency:
+  files:
+    - pom.xml

Reply via email to