Skip to content

Commit 02bc3fb

Browse files
committed
chore: add license check workflow
1 parent 297dc46 commit 02bc3fb

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/.licenserc.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2024-present Alibaba Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
header:
16+
license:
17+
spdx-id: Apache-2.0
18+
copyright-owner:
19+
- Alibaba Inc
20+
- Apache Software Foundation
21+
22+
paths:
23+
- '**'
24+
25+
paths-ignore:
26+
- '**/.gitignore'
27+
- '.github/**'
28+
- 'LICENSE'
29+
- 'NOTICE'
30+
31+
comment: on-failure
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2024-present Alibaba Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Check License"
16+
17+
on: pull_request
18+
19+
jobs:
20+
license-check:
21+
name: "Check License"
22+
runs-on: ubuntu-24.04
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
26+
- name: Check license header
27+
uses: apache/skywalking-eyes@main
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
config: .github/.licenserc.yaml

0 commit comments

Comments
 (0)