Module repos_update_request_security_and_analysis

Source

Structsยง

ReposUpdateRequestSecurityAndAnalysis
ReposUpdateRequestSecurityAndAnalysis : Specify which security and analysis features to enable or disable for the repository. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." For example, to enable GitHub Advanced Security, use this data in the body of the PATCH request: { \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }. You can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.