Skip to content

Commit 25b718a

Browse files
feat: fix ASF license for some files & enable ASF header check on pul… (#2629)
* feat: fix ASF license for some files & enable ASF header check on pull request * fix: asf-header-check.yml * fix: rename ASF header check workflow
1 parent f8ceda1 commit 25b718a

5 files changed

Lines changed: 116 additions & 44 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# 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, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
name: check-Apache-license-header
19+
20+
on:
21+
pull_request:
22+
branches: [ main ]
23+
24+
jobs:
25+
check-ASF-header:
26+
name: check Apache license header
27+
runs-on: ubuntu-20.04
28+
steps:
29+
- name: Check License Header
30+
uses: apache/skywalking-eyes/header@v0.4.0

.licenserc.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
header:
17+
license:
18+
spdx-id: Apache-2.0
19+
copyright-owner: Apache Software Foundation
20+
21+
paths-ignore:
22+
- 'dist'
23+
- 'licenses'
24+
- '**/*.md'
25+
- 'LICENSE'
26+
- 'NOTICE'
27+
- 'config-ui/node_modules'
28+
- 'bin'
29+
- 'logs'
30+
- 'mocks'
31+
- 'vendor'
32+
- '**/*.log'
33+
- '**/env.example'
34+
- '**/*.csv'
35+
- '**/*.json'
36+
- '**/*.svg'
37+
- '**/*.png'
38+
- '.editorconfig'
39+
- '**/.gitignore'
40+
- '**/.helmignore'
41+
- '**/.dockerignore'
42+
- 'DISCLAIMER-WIP'
43+
- 'DISCLAIMER'
44+
- 'go.mod'
45+
- 'go.sum'
46+
- '**/.babelrc'
47+
- '**/empty'
48+
- '**/*.conf'
49+
- '**/.eslintrc'
50+
- 'deployment/helm/templates/_helpers.tpl'
51+
52+
53+
54+
comment: on-failure

.rat-excludes

Lines changed: 0 additions & 44 deletions
This file was deleted.

config-ui/nginx.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
#!/bin/sh
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
219
set -e
320
if [ -n "$ADMIN_USER" ] && [ -n "$ADMIN_PASS" ]; then
421
htpasswd -c -b /etc/nginx/.htpasswd "$ADMIN_USER" "$ADMIN_PASS"

config-ui/src/styles/libraries/blueprint.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one or more
2+
// contributor license agreements. See the NOTICE file distributed with
3+
// this work for additional information regarding copyright ownership.
4+
// The ASF licenses this file to You under the Apache License, Version 2.0
5+
// (the "License"); you may not use this file except in compliance with
6+
// the License. You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
116
/* BlueprintCSS overrides */
217

318
/* Plugin Sidebar */

0 commit comments

Comments
 (0)