This is an automated email from the ASF dual-hosted git repository.

porcelli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new ee36300a8 kie-issues#1613: Add `CI :: License headers / check` GitHub 
Actions workflow (#2111)
ee36300a8 is described below

commit ee36300a8d6b54dc599bc8c297da214e2c37a145
Author: Jozef Marko <[email protected]>
AuthorDate: Sat Nov 30 18:59:17 2024 +0100

    kie-issues#1613: Add `CI :: License headers / check` GitHub Actions 
workflow (#2111)
    
    * Add license header
    
    * rat-excludes
    
    * print rat-check output
    
    * rename the yaml file
    
    * Try to fix tests
    
    * List explicitely all files in .rat-excludes
    
    * Use apache-rat v0.16.1
    
    * revert newline at the EOF
    
    * Everthing -> Everything
    
    * Add 
./jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js 
into LICENSE
    
    * CI :: License headers
    
    * Exclude bundle.js from license header check
    
    The bundle.js license header was added inappropriately by 
https://github.com/apache/incubator-kie-kogito-apps/pull/2043
---
 .../workflows/ci_check_license_headers.yaml        |  54 +++++------
 .gitignore                                         |   3 +
 .rat-excludes                                      | 100 +++++++++++++++++++++
 LICENSE                                            |  53 +++++++++++
 NOTICE                                             |   2 +-
 .../main/resources/META-INF/resources/bundle.js    |  18 ----
 6 files changed, 177 insertions(+), 53 deletions(-)

diff --git a/.gitignore b/.github/workflows/ci_check_license_headers.yaml
similarity index 55%
copy from .gitignore
copy to .github/workflows/ci_check_license_headers.yaml
index 3e73adc7d..cb3819f18 100644
--- a/.gitignore
+++ b/.github/workflows/ci_check_license_headers.yaml
@@ -1,3 +1,4 @@
+#
 # 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
@@ -14,41 +15,26 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+#
+
+name: "CI :: License headers"
+
+on:
+  pull_request:
+    types: [opened, synchronize, reopened, ready_for_review]
 
-node_modules/
-dist/
-dist-it/
-node/
-coverage/
-target/
-out/
-.idea
-**/.DS_Store
-*.log*
-**/stats.json
-**/junit.xml
-package-lock.json
+jobs:
+  check:
+    runs-on: ubuntu-latest
 
-# Eclipse, Netbeans and IntelliJ files
-/.*
-!.github
-!.gitignore
-!.ci
-!.mvn
-/nbproject
-/*.ipr
-/*.iws
-**/*.iml
-.classpath
-.project
-.settings
-.vscode
-!.husky
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v3
 
-# Cypress - runtime artifacts and undesired dirs
-**/cypress/screenshots
-**/cypress/videos
-/packages/cypress*
-/cypress*
+      - name: Download Apache RAT
+        run: |
+          curl -LO 
https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.16.1/apache-rat-0.16.1.jar
 
-.factorypath
+      - name: Run Apache RAT
+        run: |
+          java -jar apache-rat-0.16.1.jar -d . -E .rat-excludes | grep "== 
File:" && echo "The files listed above are missing license headers." && exit 1 
|| echo "All files have license headers."
diff --git a/.gitignore b/.gitignore
index 3e73adc7d..9f21c4425 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,3 +52,6 @@ package-lock.json
 /cypress*
 
 .factorypath
+
+# Apache RAT check excludes file
+!.rat-excludes
\ No newline at end of file
diff --git a/.rat-excludes b/.rat-excludes
new file mode 100644
index 000000000..6473bd705
--- /dev/null
+++ b/.rat-excludes
@@ -0,0 +1,100 @@
+# .rat-excludes
+.rat-excludes
+# DISCLAIMER-WIP
+DISCLAIMER-WIP
+# 
apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-common/src/main/resources/approval.bpmn
+approval.bpmn
+# 
apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/src/main/resources/META-INF/processSVG/approvals.svg
+approvals.svg
+# 
apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/src/test/resources/approval.bpmn
+approval.bpmn
+# 
apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/processes/MultipleTimerInstancesBoundaryTimerEvent.bpmn
+MultipleTimerInstancesBoundaryTimerEvent.bpmn
+# 
apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/processes/MultipleTimerInstancesTimerEvent.bpmn
+MultipleTimerInstancesTimerEvent.bpmn
+# 
apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/async.bpmn
+async.bpmn
+# 
apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/timer-on-task.bpmn
+timer-on-task.bpmn
+# 
apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/timers.bpmn
+timers.bpmn
+# 
apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/timersCycle.bpmn
+timersCycle.bpmn
+# 
apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-common/src/main/resources/TrafficViolation.dmn
+TrafficViolation.dmn
+# 
data-audit/data-audit-common/src/main/resources/META-INF/data-audit-job-query.graphqls
+data-audit-job-query.graphqls
+# 
data-audit/data-audit-common/src/main/resources/META-INF/data-audit-process-query.graphqls
+data-audit-process-query.graphqls
+# 
data-audit/data-audit-common/src/main/resources/META-INF/data-audit-types.graphqls
+data-audit-types.graphqls
+# 
data-audit/data-audit-common/src/main/resources/META-INF/data-audit-usertask-query.graphqls
+data-audit-usertask-query.graphqls
+# 
data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/data-audit-orm.xml
+data-audit-orm.xml
+# 
data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/services/org.kie.kogito.app.audit.spi.DataAuditStore
+org.kie.kogito.app.audit.spi.DataAuditStore
+# 
data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/services/org.kie.kogito.app.audit.spi.GraphQLSchemaQueryProvider
+org.kie.kogito.app.audit.spi.GraphQLSchemaQueryProvider
+# 
data-audit/kogito-addons-data-audit-springboot/src/test/resources/application.properties
+application.properties
+# data-index/data-index-graphql/src/main/resources/basic.schema.graphqls
+basic.schema.graphqls
+# 
data-index/data-index-service/data-index-service-common/src/main/resources/domain.schema.graphqls
+domain.schema.graphqls
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg
+hello.svg
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg
+hello.svg
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-jpa/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-jpa/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg
+hello.svg
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg
+hello.svg
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg
+hello.svg
+# 
data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-infinispan/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-jpa/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-jpa/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg
+hello.svg
+# 
data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-mongodb/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-postgresql/integration-tests-process/src/main/resources/hello.bpmn
+hello.bpmn
+# 
explainability/explainability-service/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
+org.mockito.plugins.MockMaker
+# jitexecutor/jitexecutor-bpmn/src/test/resources/MultipleInvalidModel.bpmn2
+MultipleInvalidModel.bpmn2
+# jitexecutor/jitexecutor-bpmn/src/test/resources/MultipleProcess.bpmn2
+MultipleProcess.bpmn2
+# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleInvalidModel.bpmn2
+SingleInvalidModel.bpmn2
+# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleProcess.bpmn
+SingleProcess.bpmn
+# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleProcess.bpmn2
+SingleProcess.bpmn2
+# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleUnparsableModel.bpmn2
+SingleUnparsableModel.bpmn2
+# jitexecutor/jitexecutor-bpmn/src/test/resources/UnparsableModel.bpmn2
+UnparsableModel.bpmn2
+# jitexecutor/jitexecutor-bpmn/src/test/resources/ValidModel.bpmn
+ValidModel.bpmn
+# jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js
+bundle.js
+# 
jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties
+application.properties
+# 
jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.ConfigSource
+org.eclipse.microprofile.config.spi.ConfigSource
+# 
trusty/trusty-service/trusty-service-common/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
+org.mockito.plugins.MockMaker
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 261eeb9e9..43ec29304 100644
--- a/LICENSE
+++ b/LICENSE
@@ -199,3 +199,56 @@
    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.
+
+-------------------------------------------------------------------------------
+for jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js
+
+It is a combination of:
+
+Copyright (c) 2017 Jed Watson.
+Licensed under the MIT License (MIT)
+
+The MIT License (MIT)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+and
+
+(c) Sindre Sorhus
+Licensed under the MIT License (MIT)
+
+and
+
+Copyright (c) Meta Platforms, Inc. and affiliates.
+Licensed under the MIT License (MIT)
+
+and
+ 
+Copyright 2011 Gary Court. All rights reserved.
+License available: https://github.com/garycourt/uri-js/blob/4.4.0/LICENSE
+
+Redistribution and use in source and binary forms, with or without 
modification, are permitted provided that the following conditions are met:
+
+1.     Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer.
+
+2.     Redistributions in binary form must reproduce the above copyright 
notice, this list of conditions and the following disclaimer in the 
documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY GARY COURT "AS IS" AND ANY EXPRESS OR IMPLIED 
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 
EVENT SHALL GARY COURT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER [...]
+
+The views and conclusions contained in the software and documentation are 
those of the authors and should not be interpreted as representing official 
policies, either expressed or implied, of Gary Court.
diff --git a/NOTICE b/NOTICE
index 6a7d335aa..a1c5656ff 100644
--- a/NOTICE
+++ b/NOTICE
@@ -5,5 +5,5 @@ This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
 
 The Initial Developer of some parts of the framework, which are copied from, 
derived from, or
-inspired by KIE (Knowledge Is Everthing) group, is Red Hat, Inc 
(https://www.redhat.com/).
+inspired by KIE (Knowledge Is Everything) group, is Red Hat, Inc 
(https://www.redhat.com/).
 Copyright Red Hat, Inc. and/or its affiliates.. All Rights Reserved.
diff --git 
a/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js 
b/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js
index a13ad01d9..f3d259143 100644
--- 
a/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js
+++ 
b/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js
@@ -1,21 +1,3 @@
-/*
- * 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.
- */
 !function(e){var t={};function r(n){if(t[n])return t[n].exports;var 
a=t[n]={i:n,l:!1,exports:{}};return 
e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof
 
Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return
 e;if(4&t&&"object"==typ [...]
 /*!
   Copyright (c) 2017 Jed Watson.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to