Repository navigation
feat(cli): record skipped steps with chainloop attestation event - #3877
Conversation
chainloop attestation event accepts --status skipped for a step that did not run, and workflow run describe shows it with its own symbol. The control plane accepts the skipped status for custom events only. Supersedes R-012 with R-013 and adds D-013 in spec issue-3825. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: c03da24e-dd81-4c92-a924-d170a48094f1
PR validation — ✅ 3 passing
AI Session Checks — 🟢 92% · ✅ 0 failing
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| modified | ai | docs/specs/issue-3825-attestation-progress-events.md |
+19 / -4 |
| modified | ai | app/controlplane/internal/service/workflowrunevent_integration_test.go |
+22 / -0 |
| modified | ai | app/cli/cmd/workflow_run_timeline_test.go |
+18 / -0 |
| modified | ai | app/controlplane/pkg/biz/workflowrunevent_test.go |
+14 / -0 |
| modified | ai | app/controlplane/pkg/biz/workflowrunevent.go |
+8 / -0 |
| modified | ai | app/cli/cmd/attestation_event.go |
+5 / -2 |
| modified | ai | app/cli/pkg/action/attestation_event.go |
+4 / -2 |
| modified | ai | app/cli/documentation/cli-reference.md |
+4 / -1 |
| modified | ai | app/cli/cmd/workflow_run_timeline.go |
+2 / -0 |
| modified | ai | app/controlplane/api/controlplane/v1/workflow_run.proto |
+2 / -0 |
| modified | ai | app/controlplane/internal/service/workflowrun.go |
+2 / -0 |
| modified | ai | app/controlplane/pkg/data/ent/migrate/schema.go |
+1 / -1 |
| modified | ai | app/cli/pkg/action/attestation_event_test.go |
+1 / -0 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-c03da2 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-c03da2 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-c03da2 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-c03da2 |
- |
Security Checks — ✅ 7 passing
✅ AI Security Analysis
Nothing this change touches re-opens a recorded security fix.
View in Chainloop ↗ · How this works ↗
✅ Secret Scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | secrets-detection |
- |
✅ SAST Scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | owasp-top10-2025 |
- |
| ✅ Passed | sast |
- |
| ✅ Passed | cwe-top25 |
- |
| ✅ Passed | cwe-top26-40-cusp |
- |
✅ IaC Scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | iac-misconfiguration |
- |
Scans not applied (2)
| Scan | Reason |
|---|---|
| Vulnerability Scan | no manifest/lockfile changed |
| GitHub Actions Scan | no workflow files changed |
Powered by Chainloop and Chainloop Trace
There was a problem hiding this comment.
All reported issues were addressed across 18 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: c03da24e-dd81-4c92-a924-d170a48094f1
|
what's the use case for this? if it's custom, what's the difference between sending it and sending it with skipped attribute? is it a UX feature? |
|
Merged by eng-autopilot: approved by matiasinsaurralde; no change request; CI passed (16 check runs, 3 workflow runs); GitHub merge state clean; no Greptile review. 🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri, using the eng-autopilot skill |
Adds a
skippedstatus to run events, for a pipeline step that did not run, for example a scan with no target or a cached test suite.chainloop attestation event --name <key> --status skippedrecords the step. The control plane acceptsskippedfor custom events only and rejects it for automatic events.chainloop workflow run describeshows a skipped step in the timeline with its own symbol (↷).STATUS_SKIPPEDvalue inWorkflowRunEvent.Status. The event status column is a varchar, so there is no migration.Spec issue-3825: R-013 supersedes R-012, and new decision D-013 records why
skippedis for custom events only (#3825).This change was written with AI assistance (Claude Code).
🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri