Skip to content

Commit 7308242

Browse files
1. add SkyWalking Eyes license check. (#139)
1 parent b94e6e1 commit 7308242

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/build-cov.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@ jobs:
2626
uses: coverallsapp/github-action@v2
2727
with:
2828
format: jacoco
29+
- name: Fix License Header
30+
uses: apache/skywalking-eyes/header@main
31+
with:
32+
mode: fix
33+
- name: Apply Changes
34+
uses: EndBug/add-and-commit@v4
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
author_name: License Bot
39+
author_email: [email protected]
40+
message: 'Automatic application of license header'

.github/workflows/build-dev.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ jobs:
2424
run: mvn install -pl testsuites -am
2525
- name: Build with Maven
2626
run: mvn clean verify -P build
27+
- name: Check License Header
28+
uses: apache/skywalking-eyes/header@main
29+
- name: Check Dependencies' License
30+
uses: apache/skywalking-eyes/dependency@main

.licenserc.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
copyright-owner: Apache Software Foundation
5+
6+
paths-ignore:
7+
- 'dist'
8+
- 'licenses'
9+
- '**/*.md'
10+
- 'LICENSE'
11+
- 'NOTICE'
12+
13+
comment: on-failure
14+
15+
dependency:
16+
files:
17+
- pom.xml

0 commit comments

Comments
 (0)