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
@@ -32,9 +39,19 @@ export async function convertCveToGhsa(
32
39
data: response.data[0]!.ghsa_id,
33
40
}
34
41
}catch(e){
42
+
consterrorCause=getErrorCause(e)
43
+
// Detect GitHub API rate limit errors.
44
+
constisGitHubRateLimit=
45
+
errorCause.includes('rate limit')||
46
+
errorCause.includes('EPIPE')||
47
+
errorCause.includes('ECONNRESET')||
48
+
errorCause.includes('403')
49
+
35
50
return{
36
51
ok: false,
37
-
message: `Failed to convert CVE to GHSA: ${getErrorCause(e)}`,
52
+
message: isGitHubRateLimit
53
+
? 'GitHub API rate limit exceeded while converting CVE to GHSA. Wait an hour or set SOCKET_CLI_GITHUB_TOKEN environment variable with a personal access token for higher limits.'
0 commit comments