From 8a5d941010d153c80a23ed2020c716b82d3f6c6b Mon Sep 17 00:00:00 2001 From: Eduardo Robles Date: Thu, 5 Jan 2023 15:51:18 +0100 Subject: [PATCH] Migrate from ORT github action to reusable ORT workflow from ort-config repo (#261) --- .github/workflows/ort.yml | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ort.yml b/.github/workflows/ort.yml index 684c4171..3df2967a 100644 --- a/.github/workflows/ort.yml +++ b/.github/workflows/ort.yml @@ -1,4 +1,5 @@ -# SPDX-FileCopyrightText: 2014-2021 Sequent Tech Inc + +# SPDX-FileCopyrightText: 2014-2022 Sequent Tech Inc # # SPDX-License-Identifier: AGPL-3.0-only name: ORT licensing @@ -17,31 +18,9 @@ on: jobs: ort: - runs-on: ubuntu-20.04 - steps: - - name: Use HTTPS instead of SSH for Git cloning - run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/ - - - uses: actions/checkout@v3 - - - name: Run GitHub Action for ORT - uses: oss-review-toolkit/ort-ci-github-action@main - with: - 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=PIP - ort-cli-evaluate-args: > - --rules-file /home/runner/.ort/config/rules.kts - --license-classifications-file /home/runner/.ort/config/license-classifications.yml + uses: sequentech/ort-config/.github/workflows/ort.yml@main + with: + ort-cli-args: > # using the default plus the package managers setting + --force-overwrite + --stacktrace + -P ort.analyzer.enabledPackageManagers=PIP