{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new CodeQL variant analysis, which will run a CodeQL query against one or more repositories.\n\nGet started by learning more about [running CodeQL queries at scale with Multi-Repository Variant Analysis](https://docs.github.com/code-security/codeql-for-vs-code/getting-started-with-codeql-for-vs-code/running-codeql-queries-at-scale-with-multi-repository-variant-analysis).\n\nUse the `owner` and `repo` parameters in the URL to specify the controller repository that\nwill be used for running GitHub Actions workflows and storing the results of the CodeQL variant analysis.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."}},"required":["owner","repo"],"additionalProperties":false},"body":{"type":"object","additionalProperties":false,"properties":{"language":{"$ref":"#/definitions/code-scanning-variant-analysis-language"},"query_pack":{"description":"A Base64-encoded tarball containing a CodeQL query and all its dependencies","type":"string"},"repositories":{"type":"array","description":"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.","items":{"type":"string"}},"repository_lists":{"description":"List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.","type":"array","maxItems":1,"items":{"type":"string"}},"repository_owners":{"description":"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.","type":"array","maxItems":1,"items":{"type":"string"}}},"required":["language","query_pack"],"oneOf":[{"required":["repositories"]},{"required":["repository_lists"]},{"required":["repository_owners"]}],"examples":[{"language":"csharp","query_pack":"aGVsbG8=","repositories":["octocat/Hello-World","octocat/example"]}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"code-scanning-variant-analysis-language":{"type":"string","description":"The language targeted by the CodeQL query","enum":["actions","cpp","csharp","go","java","javascript","python","ruby","rust","swift"]}}},"name":"Create a CodeQL variant analysis","id":"github.code-scanning.create-variant-analysis","example":{"path":{"owner":"octocat","repo":"hello-world"},"body":{"language":"csharp","query_pack":"aGVsbG8=","repositories":["octocat/Hello-World","octocat/example"]}},"maxRequests":1,"summary":false}}