apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses — GitHub API

GitHub playground

Create a CodeQL variant analysis

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

5 body fields
  • language · required · string — The language targeted by the CodeQL query
  • query_pack · required · string — A Base64-encoded tarball containing a CodeQL query and all its dependencies
  • repositories · optional · string[] — List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.
  • repository_lists · optional · string[] — List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.
  • repository_owners · optional · string[] — List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.