Skip to content

Commit b5c3d45

Browse files
Fokkozhjwpku
andauthored
Add license checker (#10)
* Add license checker * Change to Skywalking * Add trailing line Co-authored-by: Junwang Zhao <[email protected]> * Lock checkout Co-authored-by: Junwang Zhao <[email protected]> * Add trailing line Co-authored-by: Junwang Zhao <[email protected]> * Remove redundant whitespace Co-authored-by: Junwang Zhao <[email protected]> --------- Co-authored-by: Junwang Zhao <[email protected]>
1 parent bfb869a commit b5c3d45

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/.licenserc.yaml

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

0 commit comments

Comments
 (0)