> For the complete documentation index, see [llms.txt](https://docs.nullify.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nullify.ai/configuration/configuration-code.md).

# Code Configuration

## Overview

Code findings (SAST) are configured from the Nullify dashboard — there is no checked-in config file. Query findings with `GET /sast/findings` (and `/detailed`, `/preview`); fetch a single finding with `GET /sast/findings/{findingId}`.

## Autofix

Nullify drafts pull requests automatically for supported languages. Autofix is enabled per tenant; its pull request volume is fixed platform behaviour and not configurable:

* **3** open Nullify pull requests per repository at a time.
* **5** new pull requests per remediation plan.

## Pull request gate

Whether Nullify reviews pull requests and whether a code finding can fail CI is controlled from **Configure → Pull Requests** (`PUT /admin/pr-gate-settings`): `enabled`, `min_priority` (`URGENT` or `IMPORTANT`), and `allow_approving_reviews`. See [Configuration – General](/configuration/configuration-general.md) for details.

## Ignore findings

Accept a risk by allowlisting the specific finding — either per-finding from the dashboard or via the API:

```
POST /sast/findings/{findingId}/allowlist
```

Request body:

```json
{
  "allowlistReason": "HTTP requests with variables in tests are acceptable",
  "allowlistType": "UserAssumeRisk"
}
```

`allowlistType` is one of `AI`, `UserFixed`, `UserAssumeRisk`, `UserFalsePositive`, or `UserOther`. To allowlist several findings at once, use `POST /sast/findings/allowlist` and add a `findingIds` array to the same body. Remove an allowlist entry with `POST /sast/findings/{findingId}/unallowlist`.

Allowlist events also flow through the [Nullify API](/api-reference/api-reference.md) so you can export them for compliance, metrics, or SIEM correlation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nullify.ai/configuration/configuration-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
