Skip to content

Commit fc467e4

Browse files
authored
chore(ci): Add licence checker workflow (#286)
1 parent 08a210d commit fc467e4

File tree

4 files changed

+118
-2
lines changed

4 files changed

+118
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: Node CI
2020
on:
2121
push:
2222
branches-ignore:
23-
- 'dependabot/*'
23+
- 'dependabot/**'
2424
pull_request:
2525
branches:
2626
- '*'

.github/workflows/release-audit.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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:
21+
push:
22+
branches-ignore:
23+
- 'dependabot/**'
24+
pull_request:
25+
branches:
26+
- '*'
27+
28+
jobs:
29+
test:
30+
name: Audit Licenses
31+
runs-on: ubuntu-latest
32+
steps:
33+
# Checkout project
34+
- uses: actions/checkout@v4
35+
36+
# Check license headers
37+
- uses: erisu/apache-rat-action@555ae80334a535eb6c1f8920b121563a5a985a75
38+
39+
# Setup environment with node
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
44+
# Install node packages
45+
- name: npm install packages
46+
run: npm i
47+
48+
# Check node package licenses
49+
- uses: erisu/license-checker-action@e929758f9416f30234ac454fc9054ca4b803871d
50+
with:
51+
license-config: 'licence_checker.yml'
52+

.ratignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
appveyor.yml
1+
\.(.*)
2+
coverage
3+
fixtures
4+
node_modules

licence_checker.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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
61+
- Python-2.0

0 commit comments

Comments
 (0)