Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating to official ORT Github Action #326

Draft
wants to merge 1 commit into
base: 6.1.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 26 additions & 19 deletions .github/workflows/ort.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2014-2022 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
name: ORT licensing

on:
Expand All @@ -16,25 +19,29 @@ jobs:
ort:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11.0.1'
- name: Use HTTPS instead of SSH for Git cloning
run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/

- name: Analyze licensing
id: ort-action
uses: edulix/ort-action@develop
with:
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
report-extra-args: >
--report-option
PdfTemplate=template.path=/project/.ort-data/disclosure_document.ftl
- uses: actions/checkout@v3

- uses: actions/upload-artifact@v2
- name: Run GitHub Action for ORT
uses: oss-review-toolkit/ort-ci-github-action@main
with:
name: licenses
path: ${{ steps.ort-action.outputs.results-dir }}
run: > # remove the advisor step since we are not using it
cache-dependencies,
labels,
analyzer,
evaluator,
reporter,
upload-results
log-level: debug
ort-config-repository: 'https://github.com/sequentech/ort-config.git'
fail-on: issues,violations
report-formats: SpdxDocument,Excel,StaticHtml,WebApp
ort-cli-args: > # using the default plus the package managers setting
--force-overwrite
--stacktrace
-P ort.analyzer.enabledPackageManagers=Yarn
ort-cli-evaluate-args: >
--rules-file /home/runner/.ort/config/rules.kts
--license-classifications-file /home/runner/.ort/config/license-classifications.yml
228 changes: 0 additions & 228 deletions .ort-data/curations-dir/bsd_license.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .ort-data/curations-dir/distlib.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .ort-data/curations-dir/drangandroptouch.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .ort-data/curations-dir/fractionjs.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .ort-data/curations-dir/java.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .ort-data/curations-dir/jszip.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .ort-data/curations-dir/psycopg2-binary.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .ort-data/curations-dir/pycryptodomex.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .ort-data/curations-dir/reportlab.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .ort-data/curations-dir/rng-js.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .ort-data/curations-dir/voting-booth.yml

This file was deleted.

Loading