Repository navigation
fix(cli): use a valid trigger when trace push resets the attestation - #3472
Conversation
The trace push hook called executor.Reset with the trigger "trace-push". The reset action accepts only AttestationResetTriggerFailed and AttestationResetTriggerCancelled. Use AttestationResetTriggerCancelled. Assisted-by: Claude Code Signed-off-by: Jose I. Paris <jiparis@chainloop.dev> Chainloop-Trace-Sessions: 67bf285d-eb18-48e2-9bfa-d151f0eada80
AI Session Checks — 🟡 60% · ✅ 0 failing
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| modified | ai | app/cli/pkg/action/trace_hook_handler.go |
+1 / -1 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-67bf28 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-67bf28 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-67bf28 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-67bf28 |
- |
Security Checks — ✅ 5 passing
✅ 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 |
- |
✅ security-context — no advisories
Nothing this change touches has a recorded security-fix history.
View security context ↗ · Security context documentation ↗
⏭️ 3 scans not applied
| Scan | Reason |
|---|---|
vulnerability-scan |
no manifest/lockfile changed |
github-actions-scan |
no workflow files changed |
iac-scan |
no IaC files changed |
PR validation — ⚠️ 1 failing
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | pr-min-approvals |
pr-info |
- |
| ✅ Passed | pr-description-required |
pr-info |
- |
pr-user-story-linked |
pr-info |
PR/MR #3472 does not reference a user story or issue in title, description, or branch 'fix(cli): use a valid trigger when trace push resets the attestation'. Expected patterns: ["(?i)[A-Z]+-[0-9]+", "#[0-9]+", "(?i)[A-Z]{2", "}-[0-9]+", "(?i)gh-[0-9]+", "(?i)\[[A-Z]+-[0-9]+\]"] |
Powered by Chainloop and Chainloop Trace
When the trace push hook adds no AI coding session evidence, it resets the attestation. The reset call used the trigger value `trace-push`. The reset action accepts only `AttestationResetTriggerFailed` and `AttestationResetTriggerCancelled`, so the reset was not valid. The hook now uses `AttestationResetTriggerCancelled`.
AI disclosure: this change was made with help from Claude Code.