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
diff --git a/.github/workflows/asf-header-check.yml b/.github/workflows/asf-header-check.yml
new file mode 100644
index 0000000..e67ad61
--- /dev/null
+++ b/.github/workflows/asf-header-check.yml
@@ -0,0 +1,30 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: check-Apache-license-header
+
+on:
+  pull_request:
+    branches: [ main ]
+
+jobs:
+  check-ASF-header:
+    name: check Apache license header
+    runs-on: ubuntu-20.04
+    steps:
+      - name: Check License Header
+        uses: apache/skywalking-eyes/header@v0.4.0
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 0000000..d48a193
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,54 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+
+  paths-ignore:
+    - 'dist'
+    - 'licenses'
+    - '**/*.md'
+    - 'LICENSE'
+    - 'NOTICE'
+    - 'config-ui/node_modules'
+    - 'bin'
+    - 'logs'
+    - 'mocks'
+    - 'vendor'
+    - '**/*.log'
+    - '**/env.example'
+    - '**/*.csv'
+    - '**/*.json'
+    - '**/*.svg'
+    - '**/*.png'
+    - '.editorconfig'
+    - '**/.gitignore'
+    - '**/.helmignore'
+    - '**/.dockerignore'
+    - 'DISCLAIMER-WIP'
+    - 'DISCLAIMER'
+    - 'go.mod'
+    - 'go.sum'
+    - '**/.babelrc'
+    - '**/empty'
+    - '**/*.conf'
+    - '**/.eslintrc'
+    - 'deployment/helm/templates/_helpers.tpl'
+
+
+
+  comment: on-failure
diff --git a/.rat-excludes b/.rat-excludes
deleted file mode 100644
index 069ca43..0000000
--- a/.rat-excludes
+++ /dev/null
@@ -1,44 +0,0 @@
-.github/*
-.gitignore
-.gitattributes
-.gitrepo
-.eslintrc
-.eslintignore
-.rat-excludes
-.stylelintignore
-.stylelintrc
-.*log
-.*conf
-.travis.yml
-dist
-vendor
-.idea
-.*sql
-.*png
-.*svg
-.*csv
-.*md5
-.*zip
-.*lock
-.*sh
-.*babelrc
-.*editorconfig
-.*empty
-.*tpl
-logs
-.gitmodules
-scripts/*
-go.mod
-go.sum
-.*json
-.*md
-.*yaml
-.*yml
-.*scss
-rat-results.txt
-.*helmignore
-.*NOTES.txt
-.*dockerignore
-.*Dockerfile
-.*env.example
-.git
diff --git a/config-ui/nginx.sh b/config-ui/nginx.sh
index 289727c..3c431ca 100644
--- a/config-ui/nginx.sh
+++ b/config-ui/nginx.sh
@@ -1,4 +1,21 @@
 #!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 set -e
 if [ -n "$ADMIN_USER" ] && [ -n "$ADMIN_PASS" ]; then
     htpasswd -c -b /etc/nginx/.htpasswd "$ADMIN_USER" "$ADMIN_PASS"
diff --git a/config-ui/src/styles/libraries/blueprint.scss b/config-ui/src/styles/libraries/blueprint.scss
index 07c0c91..06c06c6 100644
--- a/config-ui/src/styles/libraries/blueprint.scss
+++ b/config-ui/src/styles/libraries/blueprint.scss
@@ -1,3 +1,18 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.  See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 /* BlueprintCSS overrides */
 
 /* Plugin Sidebar */