Skip to content

Commit a8f7483

Browse files
authored
ci(workflow): update release-audit & license config (#669)
1 parent ded64da commit a8f7483

File tree

2 files changed

+12
-52
lines changed

2 files changed

+12
-52
lines changed

.github/workflows/release-audit.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
14+
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

@@ -25,6 +25,9 @@ on:
2525
branches:
2626
- '*'
2727

28+
permissions:
29+
contents: read
30+
2831
jobs:
2932
test:
3033
name: Audit Licenses
@@ -33,8 +36,8 @@ jobs:
3336
# Checkout project
3437
- uses: actions/checkout@v4
3538

36-
# Check license headers
37-
- uses: erisu/apache-rat-action@v1
39+
# Check license headers (v1.2.0)
40+
- uses: erisu/apache-rat-action@3127a8c18f3bb10e91c60e835144085b31c5c463
3841

3942
# Setup environment with node
4043
- uses: actions/setup-node@v4
@@ -45,7 +48,8 @@ jobs:
4548
- name: npm install packages
4649
run: npm i
4750

48-
# Check node package licenses
49-
- uses: erisu/license-checker-action@e929758f9416f30234ac454fc9054ca4b803871d
51+
# Check node package licenses (v2.0.0)
52+
- uses: erisu/license-checker-action@1c222d0c2f5898a4c40b8bd6fd6888650bd6f68a
5053
with:
5154
license-config: 'licence_checker.yml'
55+
include-asf-category-a: true

licence_checker.yml

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,59 +6,15 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
14+
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

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-
6218
ignored-packages:
6319
6420

0 commit comments

Comments
 (0)