dcloud git security set-dependency-alert

Dismiss a dependency alert with a reason, or reopen it

IAM git:UpdateSecurityAlertChanges state

Synopsis

dcloud git security set-dependency-alert repoId alertId --state state [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

  • <alertId>Required

    string

    Also accepted as --alert-id. Constraints: uuid

Flags

  • --stateRequired

    enum

    `dismissed` closes the alert, `open` reopens it

    One of: open, dismissed

  • --reasonOptional

    string

    Why it is dismissed: false positive, not exploitable, accepted risk, fix later, or your own words

    Constraints: max 2000 chars

  • --commentOptional

    string

    Your own words beside the reason

    Constraints: max 2000 chars

Example

dcloud git security set-dependency-alert repoId alertId --state open

Generated from the API description, the same one the API checks requests against and the CLI is built from.