Skip to content

Commit b8f1378

Browse files
authored
chore: add license checker (#8)
Signed-off-by: Shiwei Zhang <[email protected]>
1 parent e0d621e commit b8f1378

3 files changed

Lines changed: 90 additions & 12 deletions

File tree

.github/licenserc.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright The ORAS Authors.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
header:
15+
license:
16+
spdx-id: Apache-2.0
17+
content: |
18+
Copyright The ORAS Authors.
19+
Licensed under the Apache License, Version 2.0 (the "License");
20+
you may not use this file except in compliance with the License.
21+
You may obtain a copy of the License at
22+
23+
http://www.apache.org/licenses/LICENSE-2.0
24+
25+
Unless required by applicable law or agreed to in writing, software
26+
distributed under the License is distributed on an "AS IS" BASIS,
27+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28+
See the License for the specific language governing permissions and
29+
limitations under the License.
30+
31+
paths-ignore:
32+
- '**/*.md'
33+
- 'CODEOWNERS'
34+
- 'LICENSE'
35+
- 'KEYS'
36+
- 'go.mod'
37+
- 'go.sum'
38+
- 'go.work'
39+
- '**/testdata/**'
40+
- '**/*.svg'
41+
- '.vscode/mcp.json'
42+
43+
comment: on-failure
44+
45+
dependency:
46+
files:
47+
- go.mod
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright The ORAS Authors.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
name: License Checker
15+
16+
on:
17+
push:
18+
branches:
19+
- main
20+
- release-*
21+
pull_request:
22+
branches:
23+
- main
24+
- release-*
25+
26+
permissions:
27+
contents: read
28+
29+
jobs:
30+
check-license:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v5
35+
- name: Check license header
36+
uses: apache/skywalking-eyes/[email protected]
37+
with:
38+
mode: check
39+
config: .github/licenserc.yml
40+
- name: Check dependencies license
41+
uses: apache/skywalking-eyes/[email protected]
42+
with:
43+
config: .github/licenserc.yml

.vscode/mcp.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
// Copyright The ORAS Authors.
2-
// Licensed under the Apache License, Version 2.0 (the "License");
3-
// you may not use this file except in compliance with the License.
4-
// You may obtain a copy of the License at
5-
6-
// http://www.apache.org/licenses/LICENSE-2.0
7-
8-
// Unless required by applicable law or agreed to in writing, software
9-
// distributed under the License is distributed on an "AS IS" BASIS,
10-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
131
{
142
"servers": {
153
"oras-mcp-server-stdio": {

0 commit comments

Comments
 (0)