# code-scanning-alert-items

From **GitHub v3 REST API**.

- Type: `object`

## Properties

### `created_at`

- Required: true
- Type: `string`
- Format: `date-time`

The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.

### `dismissed_at`

- Required: true
- Type: `string`
- Format: `date-time`
- Nullable: true

The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.

### `dismissed_by`

- Required: true
- Type: `object`
- Nullable: true

Simple User

### `dismissed_reason`

- Required: true
- Type: `string`
- Nullable: true
- Allowed values: `null`, `"false positive"`, `"won't fix"`, `"used in tests"`

**Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.

### `html_url`

- Required: true
- Type: `string`
- Format: `uri`

The GitHub URL of the alert resource.

### `instances_url`

- Required: true
- Type: `string`
- Format: `uri`

The REST API URL for fetching the list of instances for an alert.

### `most_recent_instance`

- Required: true
- Type: `object`

### `number`

- Required: true
- Type: `integer`

The security alert number.

### `rule`

- Required: true
- Type: `object`

### `state`

- Required: true
- Type: `string`
- Allowed values: `"open"`, `"closed"`, `"dismissed"`, `"fixed"`

State of a code scanning alert.

### `tool`

- Required: true
- Type: `object`

### `url`

- Required: true
- Type: `string`
- Format: `uri`

The REST API URL of the alert resource.

## JSON Schema

```json
{"properties":{"created_at":{"$ref":"#/components/schemas/alert-created-at"},"dismissed_at":{"$ref":"#/components/schemas/code-scanning-alert-dismissed-at"},"dismissed_by":{"$ref":"#/components/schemas/nullable-simple-user"},"dismissed_reason":{"$ref":"#/components/schemas/code-scanning-alert-dismissed-reason"},"html_url":{"$ref":"#/components/schemas/alert-html-url"},"instances_url":{"$ref":"#/components/schemas/alert-instances-url"},"most_recent_instance":{"$ref":"#/components/schemas/code-scanning-alert-instance"},"number":{"$ref":"#/components/schemas/alert-number"},"rule":{"$ref":"#/components/schemas/code-scanning-alert-rule-summary"},"state":{"$ref":"#/components/schemas/code-scanning-alert-state"},"tool":{"$ref":"#/components/schemas/code-scanning-analysis-tool"},"url":{"$ref":"#/components/schemas/alert-url"}},"required":["number","created_at","url","html_url","instances_url","state","dismissed_by","dismissed_at","dismissed_reason","rule","tool","most_recent_instance"],"type":"object"}
```
