Skip to content

fix: wrong message during cancellation #2128

@migmartri

Description

@migmartri

When you reset a running attestation, the default trigger is failure but the message shown in the CLI is cancelled

go run main.go att init --name test-annotations --project project-john  --replace
✗ go run main.go att reset
WRN API contacted in insecure mode
INF Attestation canceled
go run main.go wf run ls
WRN API contacted in insecure mode
┌──────────────────────────────────────┬─────────────────────────────────────┬──────────────────────┬──────────┬─────────────────────┬─────────────┐
│ ID                                   │ WORKFLOW                            │ VERSION              │ STATE    │ CREATED AT          │ RUNNER      │
├──────────────────────────────────────┼─────────────────────────────────────┼──────────────────────┼──────────┼─────────────────────┼─────────────┤
│ 770aeb44-ca7d-45a4-8ab0-2a3509513dfb │ project-john/test-annotations       │ v1.10.0 (prerelease) │ error    │ 24 Jun 25 10:34 UTC │ Unspecified │

we should show marked as failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions