CodeScanning

25 commands (DELETE 2, GET 15, PATCH 4, POST 4). Write commands (POST, PUT, PATCH, DELETE) change data on GitHub, use -WhatIf to preview a request

Command Alias Method Endpoint Synopsis
Get-GitHubCodeScanningAiScanEnablement Get-GHCodeScanningAiScanEnablement GET /repos/{owner}/{repo}/code-scanning/ai-scan Get AI Scan enablement for a repository
Get-GitHubCodeScanningAiScanEnablementForOrg Get-GHCodeScanningAiScanEnablementForOrg GET /orgs/{org}/code-scanning/ai-scan Get the AI Scan setting for an organization
Get-GitHubCodeScanningAlert Get-GHCodeScanningAlert GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} Get a code scanning alert
Get-GitHubCodeScanningAlertInstances Get-GHCodeScanningAlertInstances GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances List instances of a code scanning alert
Get-GitHubCodeScanningAlertsForOrg Get-GHCodeScanningAlertsForOrg GET /orgs/{org}/code-scanning/alerts List code scanning alerts for an organization
Get-GitHubCodeScanningAlertsForRepo Get-GHCodeScanningAlertsForRepo GET /repos/{owner}/{repo}/code-scanning/alerts List code scanning alerts for a repository
Get-GitHubCodeScanningAnalysis Get-GHCodeScanningAnalysis GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} Get a code scanning analysis for a repository
Get-GitHubCodeScanningAutofix Get-GHCodeScanningAutofix GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix Get the status of an autofix for a code scanning alert
Get-GitHubCodeScanningCodeqlDatabase Get-GHCodeScanningCodeqlDatabase GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language} Get a CodeQL database for a repository
Get-GitHubCodeScanningCodeqlDatabases Get-GHCodeScanningCodeqlDatabases GET /repos/{owner}/{repo}/code-scanning/codeql/databases List CodeQL databases for a repository
Get-GitHubCodeScanningDefaultSetup Get-GHCodeScanningDefaultSetup GET /repos/{owner}/{repo}/code-scanning/default-setup Get a code scanning default setup configuration
Get-GitHubCodeScanningRecentAnalyses Get-GHCodeScanningRecentAnalyses GET /repos/{owner}/{repo}/code-scanning/analyses List code scanning analyses for a repository
Get-GitHubCodeScanningSarif Get-GHCodeScanningSarif GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id} Get information about a SARIF upload
Get-GitHubCodeScanningVariantAnalysis Get-GHCodeScanningVariantAnalysis GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id} Get the summary of a CodeQL variant analysis
Get-GitHubCodeScanningVariantAnalysisRepoTask Get-GHCodeScanningVariantAnalysisRepoTask GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name} Get the analysis status of a repository in a CodeQL variant analysis
New-GitHubCodeScanningAutofix Get-GHNewCodeScanningAutofix POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix Create an autofix for a code scanning alert
New-GitHubCodeScanningCommitAutofix Get-GHNewCodeScanningCommitAutofix POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits Commit an autofix for a code scanning alert
New-GitHubCodeScanningUploadSarif Get-GHNewCodeScanningUploadSarif POST /repos/{owner}/{repo}/code-scanning/sarifs Upload an analysis as SARIF data
New-GitHubCodeScanningVariantAnalysis Get-GHNewCodeScanningVariantAnalysis POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses Create a CodeQL variant analysis
Remove-GitHubCodeScanningAnalysis Get-GHRemoveCodeScanningAnalysis DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} Delete a code scanning analysis from a repository
Remove-GitHubCodeScanningCodeqlDatabase Get-GHRemoveCodeScanningCodeqlDatabase DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language} Delete a CodeQL database
Set-GitHubCodeScanningAiScanEnablement Get-GHSetCodeScanningAiScanEnablement PATCH /repos/{owner}/{repo}/code-scanning/ai-scan Update AI Scan enablement for a repository
Set-GitHubCodeScanningAiScanEnablementForOrg Get-GHSetCodeScanningAiScanEnablementForOrg PATCH /orgs/{org}/code-scanning/ai-scan Update the AI Scan setting for an organization
Set-GitHubCodeScanningAlert Get-GHSetCodeScanningAlert PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} Update a code scanning alert
Set-GitHubCodeScanningDefaultSetup Get-GHSetCodeScanningDefaultSetup PATCH /repos/{owner}/{repo}/code-scanning/default-setup Update a code scanning default setup configuration

Have a look around and if you would like to contribute please read over the Contributing guide


Table of contents