oss-review-toolkit/GitHub Action for ORT

A GitHub Action workflow to run ORT.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 27, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: oss-review-toolkit/ort-ci-github-action@086d928d24ef1653dc0777296b312fda5faaaf52 # v1.2.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
vcs-typeType of version control system. Accepted values are 'git', 'git-repo', 'mercurial' or 'subversion'. nogit
vcs-urlRepository or clone URL of project to scan. no""
vcs-revisionSHA1 or tag to scan (do not use branch names as they can move). If vcs-type is 'git-repo', SHA1 must be unabbreviated. Tag names must be prefixed with 'refs/tags/'. no""
vcs-pathLeave this field empty unless one of the following special cases applies: 1) project vcs-type is git-repo - specify path to repo manifest file (e.g. sdk.xml, note vcs-url must point to a manifest repository) 2) you require sparse checkout - specify repository sub-path to download and scan (e.g. projects/gradle/, note sparse checkout is possible only for vcs-type git, mercurial or subversion) ""
advisorsComma-separated list of security vulnerability advisors to use. noOSV
allow-dynamic-versionsSet to 'true' only if dynamic dependency versions are allowed (note version ranges specified for dependencies may cause unstable results). This field applies only to package managers that support lock files, e.g. NPM. nofalse
db-urlURL of the PostgreSQL database used for caching scan-results and storing file archives. no""
db-usernameUsername for the PostgreSQL database used for caching scan-results and storing file archives. no""
db-passwordPassword for the PostgreSQL database used for caching scan-results and storing file archives. no""
docker-cli-argsList of arguments to pass to Docker CLI. no""
fail-onComma-separated list of ORT results that if exceeding their severity threshold will fail the action. Accepted values are '', 'issues', 'violations' or 'issues,violations'. If empty, then exceeding severity threshold will not fail the action. no""
http-file-server-urlURL of the HTTP file server used for caching scan-results and storing file archives. no""
http-file-server-usernameUsername for HTTP file server used for caching scan-results and storing file archives. no""
http-file-server-passwordPassword for HTTP file server used for caching scan-results and storing file archives. no""
http-file-server-tokenAPI token for HTTP file server used for caching scan-results and storing file archives. no""
imageURL for ORT Docker image to use. noghcr.io/oss-review-toolkit/ort:latest
log-levelSet value to 'debug' to see additional debug output to help tracking down errors. nowarn
ort-cli-argsList of arguments to pass to ORT CLI, applies to all commands. no-P ort.forceOverwrite=true --stacktrace
ort-cli-analyze-argsList of arguments to pass to ORT Analyzer CLI. no""
ort-cli-scan-argsList of arguments to pass to ORT Scanner CLI. no""
ort-cli-evaluate-argsList of arguments to pass to ORT Evaluator CLI. no""
ort-cli-advise-argsList of arguments to pass to ORT Advisor CLI. no""
ort-cli-report-argsList of arguments to pass to ORT Reporter CLI. no-O CycloneDX=output.file.formats=json,xml -O SpdxDocument=output.file.formats=json,yaml
ort-config-pathPath to ORT configuration directory within the user home directory. no""
ort-home-pathPath to ORT 'home' or 'data' directory within the user home directory. no.ort
ort-config-repositoryURL to ORT configuration repository to use. nohttps://github.com/oss-review-toolkit/ort-config.git
ort-config-revisionThe Git revision or branch of the ORT configuration repository to use. nomain
ort-jdk-java-optionsSets ORT JDK_JAVA_OPTIONS env variable used by ort container, defaults to -Xmx5120m. -Xmx5120m
ort-yml-pathPath to file containing the repository configuration. If set, the '.ort.yml' file from the repository is ignored. no""
project-pathPath within $GITHUB_WORKSPACE to be analyzed/scanned with ORT. If empty, $GITHUB_WORKSPACE directory is scanned. no${{ github.workspace }}
report-formatsComma-separated list of ORT reporters to run. noCycloneDx,SpdxDocument,WebApp
runComma-separated list of optional workflow steps to run. nocache-dependencies, labels, analyzer, evaluator, advisor, reporter, upload-results
sw-nameName of project, product or component to be scanned. By default the name of the repository is used as shown in its clone URL. no""
sw-versionProject version number or release name (use the version from package metadata, not VCS revision). By default, the Git short SHA is used. no""
namedescription
evaluator-exit-codeThe exit code of the evaluator CLI command.
advisor-exit-codeThe exit code of the advisor CLI command.
results-pathPath to the result directory.
results-advisor-pathPath to the advisor result file.
results-evaluator-pathPath to the evaluator result file.
results-scanner-pathPath to the scanner result file.
results-html-report-pathPath to the HTML report file.
results-sbom-cyclonedx-xml-pathPath to the CycloneDX XML SBoM file.
results-sbom-cyclonedx-json-pathPath to the CycloneDX JSON SBoM file.
results-sbom-spdx-json-pathPath to the SPDX JSON SBoM file.
results-sbom-spdx-yml-pathPath to the SPDX YML SBoM file.
results-web-app-pathPath to the Web App Report file.