-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New pipeline check that fails on deps licensing issues using ORT (#157)
- Loading branch information
Showing
15 changed files
with
87 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2014-2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
name: ORT licensing | ||
|
||
on: | ||
|
@@ -25,14 +28,14 @@ jobs: | |
id: ort-action | ||
uses: edulix/ort-action@develop | ||
with: | ||
fail-on: hints | ||
package-curations-dir: .ort-data/curations-dir/ | ||
rules-file: .ort-data/rules.kts | ||
license-classifications-file: .ort-data/license-classifications.yml | ||
reporters: AdocTemplate,PdfTemplate,Excel,StaticHtml,WebApp | ||
ort-extra-args: -P ort.severeRuleViolationThreshold=HINT --debug | ||
report-extra-args: > | ||
--report-option | ||
ADocTemplate=template.path=/project/.ort-data/disclosure_document.ftl | ||
PdfTemplate=template.path=/project/.ort-data/disclosure_document.ftl | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "Yarn::agora-gui-booth" | ||
curations: | ||
comment: "This package needs to be downloaded from git" | ||
vcs: | ||
type: "git" | ||
url: "https://github.com/Bernardo-Castilho/dragdroptouch.git" | ||
revision: "058f0eca96e57ad695f0d5dd2d7bd492ef1c4e47" | ||
url: "https://github.com/agoravoting/agora-gui-common.git" | ||
revision: "4.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
--- | ||
- id: "PyPI::babel" | ||
curations: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "PyPI::distlib" | ||
curations: | ||
comment: "Invalid license with a space." | ||
declared_license_mapping: | ||
"BSD License": "BSD-3-Clause" | ||
"Python license": "PSF-2.0" | ||
"Python license": "PSF-2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "dragandroptouch" | ||
curations: | ||
comment: "This package needs to be downloaded from git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "NPM::fraction.js" | ||
curations: | ||
comment: "The package is detected as GPL because it's double licensed with GPL and MIT, so we use the MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "Maven:javax.cache:cache-api" | ||
curations: | ||
comment: "Incorrectly matched license, see https://search.maven.org/artifact/javax.cache/cache-api" | ||
|
@@ -14,4 +17,4 @@ | |
curations: | ||
comment: "H2 is dual licensed and available under the MPL 2.0 (Mozilla Public License Version 2.0) or under the EPL 1.0 (Eclipse Public License). http://h2database.com/html/license.html" | ||
declared_license_mapping: | ||
"The H2 License, Version 1.0": "EPL-1.0" | ||
"The H2 License, Version 1.0": "EPL-1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "NPM::jszip" | ||
curations: | ||
comment: "The package is detected as GPL-3.0-only because it's double licensed with GPL-3.0-only and MIT, so we use the MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "PyPI::psycopg2-binary" | ||
curations: | ||
comment: "Incorrectly matched license." | ||
declared_license_mapping: | ||
"LGPL with exceptions": "LGPL-2.0-only" | ||
"LGPL with exceptions": "LGPL-2.0-only" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "PyPI::pycryptodomex" | ||
curations: | ||
comment: "Incorrectly matched license." | ||
declared_license_mapping: | ||
"BSD, Public Domain": "BSD-3-Clause" | ||
"BSD License": "BSD-3-Clause" | ||
"BSD License": "BSD-3-Clause" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "PyPI::reportlab" | ||
curations: | ||
comment: "Incorrectly matched license." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
- id: "NPM::rng-js" | ||
curations: | ||
comment: "Declared license is misspelled with a 'c' - UK vs. US English." | ||
declared_license_mapping: | ||
Unlicence: "Unlicense" | ||
Unlicence: "Unlicense" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
--- | ||
# SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
# SPDX-FileCopyrightText: 2020-2021 Bosch.IO GmbH | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
# | ||
# Example license-classifications.yml based on categorization from | ||
# https://github.com/nexB/scancode-toolkit/commit/ed644e4 | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,8 @@ | ||
/* | ||
* Copyright (C) 2019 HERE Europe B.V. | ||
* SPDX-FileCopyrightText: 2021 Agora Voting SL <[email protected]> | ||
* SPDX-FileCopyrightText: 2019 HERE Europe B.V. | ||
* | ||
* Licensed 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 | ||
* | ||
* https://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. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* License-Filename: LICENSE | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
/******************************************************* | ||
|
@@ -220,8 +208,9 @@ val ruleSet = ruleSet(ortResult, licenseInfoResolver) { | |
|
||
issue( | ||
Severity.ERROR, | ||
"The project ${project.id.toCoordinates()} has a dependency licensed under the ScanCode " + | ||
"copyleft categorized license $license.", | ||
"The project ${project.id.toCoordinates()} has the dependency " + | ||
"${dependency.id.toCoordinates()} licensed under the ScanCode " + | ||
"copyleft categorized license $license.", | ||
howToFixDefault() | ||
) | ||
} | ||
|