Skip to content

Commit 816bb1d

Browse files
committed
ci(release-audit): add license header and dependency checker
1 parent 4742358 commit 816bb1d

File tree

3 files changed

+115
-8
lines changed

3 files changed

+115
-8
lines changed

.github/workflows/release-audit.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with 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,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Release Auditing
19+
20+
on: [push, pull_request]
21+
22+
jobs:
23+
test:
24+
name: Audit Licenses
25+
runs-on: ubuntu-latest
26+
steps:
27+
# Checkout project
28+
- uses: actions/checkout@v4
29+
30+
# Check license headers
31+
- uses: erisu/apache-rat-action@555ae80334a535eb6c1f8920b121563a5a985a75
32+
33+
# Setup environment with node
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
38+
# Install node packages
39+
- name: npm install packages
40+
run: npm i
41+
42+
# Check node package licenses
43+
- uses: erisu/license-checker-action@e929758f9416f30234ac454fc9054ca4b803871d
44+
with:
45+
license-config: 'licence_checker.yml'

.ratignore

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
*.properties
2-
templates
3-
gen
4-
proguard-project.txt
5-
spec
6-
framework/build
7-
ic_launcher.png
8-
build
1+
\.(.*)
2+
(.*).txt
3+
coverage
4+
fixtures
5+
generated
6+
gitignore
7+
intermediates
8+
reports
9+
test-results
10+
node_modules

licence_checker.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with 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,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Compiled list of allowed 3RD PARTY LICENSES from:
19+
#
20+
# ASF CATEGORY A: WHAT CAN WE INCLUDE IN AN ASF PROJECT
21+
# https://www.apache.org/legal/resolved.html#category-a
22+
#
23+
# Licenses converted into the SPDX standardized short identifier format.
24+
# https://spdx.org/licenses/
25+
allowed-licenses:
26+
- 0BSD
27+
- AFL-3.0
28+
- Apache-1.1
29+
- Apache-2.0
30+
- APAFML
31+
- BlueOak-1.0.0
32+
- BSD-2-Clause
33+
- BSD-3-Clause
34+
- BSD-3-Clause-LBNL
35+
- BSL-1.0
36+
- CC-PDDC
37+
- CC0-1.0
38+
- EPICS
39+
- HPND
40+
- ICU
41+
- ISC
42+
- MIT
43+
- MIT-0
44+
- MS-PL
45+
- MulanPSL-2.0
46+
- NCSA
47+
- OGL-UK-3.0
48+
- PHP-3.01
49+
- PostgreSQL
50+
- PSF-2.0
51+
- SMLNJ
52+
- Unicode-DFS-2016
53+
- Unlicense
54+
- UPL-1.0
55+
- W3C
56+
- WTFPL
57+
- X11
58+
- Xnet
59+
- Zlib
60+
- ZPL-2.0

0 commit comments

Comments
 (0)