Skip to content

Commit 15f35b1

Browse files
cleanup license scanning
1 parent c548e5a commit 15f35b1

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/cve-scanning.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
uses: actions/upload-artifact@v4
4141
with:
4242
name: Depcheck report
43-
path: ${{github.repository}}/reports
43+
path: ${{github.workspace}}/reports

.github/workflows/license-scanning-maven.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,42 @@ on:
99
- '.github/workflows/license-scanning-maven.yml'
1010

1111
env:
12-
ALLOW_LICENSES: "'The Apache Software License, Version 2.0' and licenses/license/name!='BSD' and licenses/license/name!='BSD-style license' and licenses/license/name!='Apache License, Version 2.0'"
12+
ALLOW_LICENSES: "
13+
licenses/license/name!='Apache License, Version 2.0' and
14+
not(contains(licenses/license/url, '://www.apache.org/licenses/LICENSE-2.0.txt')) and
15+
not(contains(licenses/license/url, '://opensource.org/licenses/Apache-2.0')) and
16+
17+
licenses/license/name!='BSD License' and
18+
not(contains(licenses/license/url, 'antlr.org/license.html')) and
19+
20+
licenses/license/name!='New BSD License' and
21+
not(contains(licenses/license/url, '://www.opensource.org/licenses/bsd-license.php')) and
22+
23+
licenses/license/name!='BSD-3-Clause' and
24+
not(contains(licenses/license/url, '://asm.ow2.io/license.html')) and
25+
26+
licenses/license/name!='Eclipse Public License - v 1.0' and
27+
not(contains(licenses/license/url, '://www.eclipse.org/legal/epl-v10.html')) and
28+
29+
licenses/license/name!='Eclipse Public License - v 2.0' and
30+
not(contains(licenses/license/url, '://www.eclipse.org/legal/epl-v20.html')) and
31+
not(contains(licenses/license/url, '://www.eclipse.org/legal/epl-2.0')) and
32+
33+
licenses/license/name!='GNU Lesser General Public License' and
34+
not(contains(licenses/license/url, '://www.gnu.org/licenses/old-licenses/lgpl-2.1.html')) and
35+
36+
licenses/license/name!='GNU General Public License (GPL), version 2, with the Classpath exception' and
37+
not(contains(licenses/license/url, '://openjdk.java.net/legal/gplv2+ce.html')) and
38+
39+
licenses/license/name!='The MIT License' and
40+
not(contains(licenses/license/url, '://opensource.org/licenses/MIT')) and
41+
not(contains(licenses/license/url, '://www.opensource.org/licenses/mit-license.php')) and
42+
43+
licenses/license/name!='CDDL + GPLv2 with classpath exception' and
44+
not(contains(licenses/license/url, '://github.com/javaee/javax.annotation/blob/master/LICENSE')) and
45+
46+
licenses/license/name!='Public Domain'
47+
"
1348
REPORT_PATH: "target/generated-resources/licenses.xml"
1449

1550
jobs:

0 commit comments

Comments
 (0)