Get evidence-ci-runs
get evidence-ci-runs - Get CI run IDs for a module and its dependencies (for evidence building)
Returns a list of {module, workflow, run_id} for downloading test/scan artifacts. Uses per-module change detection to find the appropriate CI run for each dependency. Fails if any dependency with a ci-{module}.yaml workflow has no successful CI.
Flags
| Flag | Description |
|---|---|
--format |
Output format (json outputs JSON array for shell parsing; otherwise uses standard get command formats) |
Notes
Expected Output:
YAML/JSON list of CI runs containing: - module: the dependency module moniker - workflow: the ci-{module}.yaml workflow name - run_id: the GitHub Actions run ID to download artifacts from
Example usage in CI: CI_RUNS=$(commands get evidence-ci-runs r2r-cli --format json) echo "$CI_RUNS" | jq -c '.[]' | while read entry; do module=$(echo "$entry" | jq -r '.module') run_id=$(echo "$entry" | jq -r '.run_id') gh run download "$run_id" --pattern "test-results-${module}*" done
See Also
- pipeline download-evidence-artifacts - Download artifacts using these CI runs
- get build-deps - Get build dependencies for a module
- get changed-modules-ci - Get modules requiring rebuild
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.