---
title: "Get a code quality setup configuration"
method: GET
path: "/repos/{owner}/{repo}/code-quality/setup"
tags: ["code-quality"]
---

# Get a code quality setup configuration

`GET /repos/{owner}/{repo}/code-quality/setup`

Gets a code quality setup configuration.

OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `200`

Response

- CodeQualitySetup — Configuration for code quality setup.
  - `state` 'configured' | 'not-configured' — Code quality setup has been configured or not.
  - `languages` string[] — Languages to be analyzed.
  - `runner_type` 'standard' | 'labeled', nullable — Runner type to be used.
  - `runner_label` string, nullable — Runner label to be used if the runner type is labeled.
  - `updated_at` string, date-time, nullable — Timestamp of latest configuration update.
  - `schedule` 'weekly', nullable — The frequency of the periodic analysis.
  - `ai_findings_option` 'disabled' | 'on_push', nullable — The AI findings configuration for the repository.

## Other responses

- `403` — Response if the user is not authorized to access Code quality for this repository.
- `404` — Resource not found
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
