feat(cli): show the contract and runner of a run in the describe table

Merged
MI
1d ago
+38-40

The initialized line of the run timeline in chainloop workflow run describe repeated the contract, its revision, the runner type and the state location. That data belongs to the run itself, so the Workflow Run table now shows it, in the same way as chainloop attestation status:

│ Contract       │ chainloop-platform-backend-release-canary (revision 14) │
│ Runner Type    │ GitHub                                                  │
│ Runner Link    │ https://github.com/...                                  │

The contract comes from the contract version that the run used, not from the current contract of the workflow.

The initialized line of the timeline now shows only the result of the attestation policies, like the push line:

Before:

├─ 18:58:53  ✓ initialized   contract chainloop-platform-backend-release-canary rev 14 · GITHUB_ACTION · local state · policies: 4 passed, 2 violated

After:

├─ 18:58:53  ✓ initialized   policies: 4 passed, 2 violated

The JSON output does not change: the events keep their contract, runner and state fields.

AI disclosure: this change was made with the assistance of Claude Code.

🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri