dcloud git security set-code-scanning-alert

Dismiss a code scanning alert with a reason, or reopen it

IAM git:UpdateSecurityAlertChanges state

Synopsis

dcloud git security set-code-scanning-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

    Constraints: max 2000 chars

Example

dcloud git security set-code-scanning-alert repoId alertId --state open

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