Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#1613: Add CI :: License headers / check GitHub Actions workflow #2746

Merged
merged 45 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e63e164
kie-issues#1613: Add apache-rat check github action
jomarko Nov 15, 2024
571eab2
remove checkstyle.header.template
jomarko Nov 15, 2024
e83541f
Update .github/workflows/pr-rat-check.yml
jomarko Nov 18, 2024
bed1c37
Update .github/workflows/pr-rat-check.yml
jomarko Nov 18, 2024
9f863fa
update triggers
jomarko Nov 18, 2024
7681a7e
List excluded files explicitely
jomarko Nov 20, 2024
eb1037b
add third-party excludes
jomarko Nov 20, 2024
767a6e2
List explicitely all files in the .rat-excludes
jomarko Nov 21, 2024
0d481a3
Use apache-rat v0.16.1
jomarko Nov 21, 2024
17003e0
Everthing -> Everything
jomarko Nov 21, 2024
5b92220
CI :: License headers
jomarko Nov 22, 2024
c0f1875
Merge branch 'main' into kie-issues#1613
jomarko Nov 22, 2024
4c94cde
NOTICE -> LICENSE
jomarko Nov 22, 2024
a548b7d
BPMN and DMN xsd LICENSE
jomarko Nov 22, 2024
478818a
Makefile licenseheader
jomarko Nov 22, 2024
deea9b6
Fix *.dmn license headers
jomarko Nov 22, 2024
f8650c6
Fix README.md license headers
jomarko Nov 22, 2024
d2aff84
fix docker-compose
jomarko Nov 22, 2024
fdb5987
fix svg icons
jomarko Nov 22, 2024
5781ee8
application.properties
jomarko Nov 22, 2024
a20a419
fix hiring.bpmn
jomarko Nov 22, 2024
697df72
.less licenses
jomarko Nov 22, 2024
c10c787
fix css and scss
jomarko Nov 22, 2024
d8e03f9
fix Chart.yaml
jomarko Nov 22, 2024
4e8d8ad
fix java files
jomarko Nov 22, 2024
7c48f93
DEV_DEPLOYMENTS
jomarko Nov 22, 2024
bb783a8
mdx
jomarko Nov 22, 2024
16ae495
types.ts
jomarko Nov 22, 2024
1104eae
revert run-script-if and image-builder README
jomarko Nov 25, 2024
00288c9
Base64Util.java
jomarko Nov 25, 2024
51c0fad
licenses delimeter
jomarko Nov 25, 2024
c612cfc
Add js.back files
jomarko Nov 25, 2024
61180fb
Merge branch 'main' into kie-issues#1613
jomarko Nov 25, 2024
982d0d3
sonataflow-operator yaml files
jomarko Nov 25, 2024
163e2b0
Merge branch 'main' into kie-issues#1613
jomarko Nov 26, 2024
3a85896
align with https://github.com/apache/incubator-kie-drools/blob/main/k…
jomarko Nov 26, 2024
0122d20
Merge branch 'main' into kie-issues#1613
jomarko Nov 27, 2024
bfa992a
Text of the LICENSE does not repeat MIT and AP
jomarko Nov 27, 2024
d8429f0
Remove entries of files not present in sources zip
jomarko Nov 27, 2024
c552ac9
fix licenses
jomarko Nov 27, 2024
5e59158
prettier --write
jomarko Nov 27, 2024
77de49b
Fix 'Check hanging uncommitted files'
jomarko Nov 28, 2024
48d1143
Fix 'Check hanging uncommitted files' 2
jomarko Nov 28, 2024
29e4368
Revert "fix Chart.yaml"
jomarko Nov 28, 2024
0a5ed1c
revert loan-pre-qualification - test cheking exact content
jomarko Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci_check_license_headers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# 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: "CI :: Check license headers"

on:
push:
branches: [main]
pull_request:
branches: ["**"]
types: [opened, reopened, ready_for_review, synchronize]

jobs:
check-license-headers:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download Apache RAT
run: |
curl -LO https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/0.17-SNAPSHOT/apache-rat-0.17-20241115.065104-374.jar

- name: Run Apache RAT
run: |
java -jar apache-rat-0.17-20241115.065104-374.jar --input-exclude-file .rat-excludes -- . > .tmp-rat-check-output
cat .tmp-rat-check-output
grep "Files with unapproved licenses:" .tmp-rat-check-output && rm .tmp-rat-check-output && echo "There are files with missing or unapproved license headers." && exit 1 || rm .tmp-rat-check-output && echo "All files have correct license headers."
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,7 @@ turbo.json
# IntelliJ projects should be on _intellij-projects folder, never on specific packages.
packages/*/.idea
examples/*/.idea


# Apache RAT check excludes file
!.rat-excludes
Loading
Loading