# code-scanning-alert-set-state

Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.

**Type:** enum

## Values

- `open`
- `dismissed`
