-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from ORT github action to reusable ORT workflow (#291)
- Loading branch information
Showing
1 changed file
with
7 additions
and
28 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,4 @@ | ||
|
||
# SPDX-FileCopyrightText: 2014-2022 Sequent Tech Inc <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
|
@@ -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://[email protected]/ | ||
|
||
- 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=Yarn | ||
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=Yarn |