oss-review-toolkit/Forgejo Action for ORT

A Forgejo Action workflow to run ORT.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Dec 7, 2025
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: oss-review-toolkit/ort-ci-forgejo-action@fde3a6b246d8e6fe49fdaf90c20d877493eb0edb # v1.0.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""
dist-archive-urlThe ORT distribution archive to use. If empty, then github.com/oss-review-toolkit/ort/releases/download/72.0.0/ort-72.0.0.tgz is used. 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
modeRun the action using Docker-in-Docker (dnd) with the specified ORT Docker image in 'image', or natively using the ORT distribution archive (da). Accepted values: 'dnd', 'docker-in-docker', 'da', or 'dist-archive'. da
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-yml-pathPath to file containing the repository configuration. If set, the '.ort.yml' file from the repository is ignored. no""
orth-dist-archive-urlThe ORT helper distribution archive to use. If empty, then github.com/oss-review-toolkit/ort/releases/download/72.0.0/orth-72.0.0.tgz is used. no""
project-pathPath within $FORGEJO_WORKSPACE to be analyzed/scanned with ORT. If empty, $FORGEJO_WORKSPACE directory is scanned. no${{ forgejo.workspace }}
report-formatsComma-separated list of ORT reporters to run. noCycloneDx,SpdxDocument,WebApp
runComma-separated list of optional workflow steps to run. noinit, setup-python, setup-python-setuptools, setup-python-inspector, setup-java, setup-ort, cache-dependencies, config-git-use-https, 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
advisor-exit-codeThe exit code of the ORT Advisor CLI command.
dist-archive-urlThe ORT distribution archive used.
evaluator-exit-codeThe exit code of the ORT Evaluator CLI command.
ort-config-pathThe path to the ORT configuration directory that was used.
ort-config-vcs-revisionThe Git revision or branch of the ORT configuration repository that was used.
ort-config-vcs-urlURL to ORT configuration repository that was used.
ort-cli-advise-argsArguments passed to the ORT Advisor.
ort-cli-analyze-argsArguments passed to the ORT Analyzer.
ort-cli-evaluate-argsArguments passed to the ORT Evaluator.
ort-cli-report-argsArguments passed to the ORT Reporter.
ort-cli-scan-argsArguments passed to the ORT Scanner.
ort-versionThe version of the software analyzed with ORT.
orth-dist-archive-urlThe ORT helper distribution archive used.
results-advisor-pathPath to the advisor result file.
results-analyzer-pathPath to the advisor result file.
results-evaluator-pathPath to the evaluator result file.
results-evaluated-model-pathPath to the evaluated model result file.
results-pathPath to the result directory.
results-report-html-pathPath to the static HTML report file.
results-report-web-app-pathPath to the Web App 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-scanner-pathPath to the scanner result file.
sw-nameThe name of the software analyzed with ORT.
sw-name-safeThe name of the software analyzed with ORT converted to contain only A-Z, a-z, 0-9 and hyphens.
sw-versionThe version of the software analyzed with ORT.