Configure default PR Checks
Create or update the workspace default PR Checks configuration. This configuration is applied to newly activated repositories that do not have a repo-specific configuration. It does not update existing repo configurations.
The default configuration is considered enabled when at least one of the following is true: fail_on_dependency_scan, fail_on_sast_scan, fail_on_iac_scan, fail_on_secrets_scan, fail_on_malware_scan, enable_code_quality_scan, or run_deep_audit_pr_scan. If all of those are false, the default configuration is removed.
Enabling a default configuration requires a paying account. Deep Review (run_deep_audit_pr_scan) is only available in the EU and US regions and requires at least one vulnerability scan type to be enabled.
Request
- Base URLhttps://app.aikido.dev/api/public/v1
- URLhttps://app.aikido.dev/api/public/v1/repositories/code/continuous_integration/checks/default
- AuthOAuth 2Client credentialsToken URL: https://app.aikido.io/api/oauth/token scopes: repositories:write
Request body
Example request
{
"minimum_severity": "high",
"fail_on_dependency_scan": true,
"fail_on_sast_scan": true,
"fail_on_iac_scan": true,
"fail_on_secrets_scan": true,
"fail_on_malware_scan": true,
"post_inline_comments_min_severity": "critical",
"minimum_license_severity": "high",
"enable_code_quality_scan": true,
"fail_on_code_quality_scan": true,
"post_code_quality_inline_comments_min_severity": "medium",
"run_deep_audit_pr_scan": true
}Response
The default PR Checks configuration was updated.
Example response
{
"status": "ok"
}Changes
No recorded changes to this operation across all 1 revision of this API.