You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errBitbucketListAppReposNotSupported=fmt.Errorf("list app repositories is %s", notSupportedOnBitbucket)
37
38
errBitbucketCreatePullRequestDetailedNotSupported=fmt.Errorf("creating pull request detailed is %s", notSupportedOnBitbucket)
38
39
errBitbucketUploadSnapshotToDependencyGraphNotSupported=fmt.Errorf("uploading snapshot to dependency graph UI is %s", notSupportedOnBitbucket)
40
+
errBitbucketIsCodeScanningEnabledNotSupported=fmt.Errorf("checking if code scanning is enabled is %s", notSupportedOnBitbucket)
41
+
errBitbucketIsCodeScanningEnabledViaSARIFNotSupported=fmt.Errorf("checking if code scanning is enabled via SARIF upload is %s", notSupportedOnBitbucket)
// 422 means the endpoint exists and is processing our request, but the empty body is invalid
1765
+
returntrue, nil
1766
+
default:
1767
+
// Any other status code is unexpected
1768
+
ifresp.StatusCode>=200&&resp.StatusCode<300 {
1769
+
// Success is unexpected with empty body
1770
+
client.logger.Warn("Code scanning request unexpectedly succeeded for", owner+"/"+repository, "with status", resp.StatusCode, ". This should not happen.")
1771
+
returntrue, nil
1772
+
} else {
1773
+
// Other error status codes
1774
+
client.logger.Warn("Unexpected status code", resp.StatusCode, "when checking code scanning for", owner+"/"+repository)
0 commit comments