apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /repos/{owner}/{repo}/code-scanning/default-setup — GitHub API

GitHub playground

Update a code scanning default setup configuration

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

6 body fields
  • state · optional · string — The desired state of code scanning default setup.
  • runner_type · optional · string — Runner type to be used.
  • runner_label · optional · string — Runner label to be used if the runner type is labeled.
  • query_suite · optional · string — CodeQL query suite to be used.
  • threat_model · optional · string — Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
  • languages · optional · string[] — CodeQL languages to be analyzed.