Skip to content

Conversation

@tdruez
Copy link
Contributor

@tdruez tdruez commented Sep 5, 2025

Models: https://github.com/oss-review-toolkit/ort/blob/main/cli-helper/src/main/kotlin/commands/CreateAnalyzerResultFromPackageListCommand.kt

Change

A new "package-list.yml" ORT output is available in the UI, REST API, and CLI.
This output can be used as an ORT input.

Usage

1. ScanCode.io project

Run a analyze_docker_image pipeline on a Docker image input.

2. Download the new ORT "package-list.yml" output.

3. Create ORT "analyzer-result.yml" from "package-list.yml"

ORT_VERSION=68.1.0

docker run --rm -v $PWD:/data \
  --entrypoint /opt/ort/bin/orth \
  ghcr.io/oss-review-toolkit/ort:${ORT_VERSION} \
  create-analyzer-result-from-package-list \
    --package-list-file /data/package-list.yml \
    --ort-file /data/analyzer-result.yml

4. Load "analyzer-result.yml" and generate reports (CycloneDX, SPDX, WebApp)

docker run --rm -v $PWD:/data \
  ghcr.io/oss-review-toolkit/ort:${ORT_VERSION} \
  report \
    --ort-file /data/analyzer-result.yml \
    --output-dir /data/results/ \
    --report-formats CycloneDX,SpdxDocument,WebApp

@tdruez tdruez merged commit 45ef995 into main Sep 12, 2025
15 checks passed
@tdruez tdruez deleted the 1727-ORT-package-list-ouput branch September 12, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants