mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Retry API authentication errors since these can be transient
This commit is contained in:
6
lib/analyze-action-post.js
generated
6
lib/analyze-action-post.js
generated
@@ -160929,6 +160929,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/analyze-action.js
generated
6
lib/analyze-action.js
generated
@@ -106639,6 +106639,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/autobuild-action.js
generated
6
lib/autobuild-action.js
generated
@@ -103300,6 +103300,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/init-action-post.js
generated
6
lib/init-action-post.js
generated
@@ -164145,6 +164145,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/init-action.js
generated
6
lib/init-action.js
generated
@@ -103986,6 +103986,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/resolve-environment-action.js
generated
6
lib/resolve-environment-action.js
generated
@@ -103308,6 +103308,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/setup-codeql-action.js
generated
6
lib/setup-codeql-action.js
generated
@@ -103417,6 +103417,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/start-proxy-action-post.js
generated
6
lib/start-proxy-action-post.js
generated
@@ -160812,6 +160812,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/start-proxy-action.js
generated
6
lib/start-proxy-action.js
generated
@@ -120388,6 +120388,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/upload-lib.js
generated
6
lib/upload-lib.js
generated
@@ -106277,6 +106277,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/upload-sarif-action-post.js
generated
6
lib/upload-sarif-action-post.js
generated
@@ -160812,6 +160812,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
6
lib/upload-sarif-action.js
generated
6
lib/upload-sarif-action.js
generated
@@ -106323,6 +106323,12 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
||||
info: core5.info,
|
||||
warn: core5.warning,
|
||||
error: core5.error
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451]
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
@@ -36,6 +36,9 @@ test("getApiClient", async (t) => {
|
||||
baseUrl: "http://api.github.localhost",
|
||||
log: sinon.match.any,
|
||||
userAgent: `CodeQL-Action/${actionsUtil.getActionVersion()}`,
|
||||
retry: {
|
||||
doNotRetry: [400, 410, 422, 451],
|
||||
},
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -51,6 +51,12 @@ function createApiClientWithDetails(
|
||||
warn: core.warning,
|
||||
error: core.error,
|
||||
},
|
||||
retry: {
|
||||
// The default is 400, 401, 403, 404, 410, 422, and 451. We have observed transient errors
|
||||
// with authentication, so we remove 401, 403, and 404 from the default list to ensure that
|
||||
// these errors are retried.
|
||||
doNotRetry: [400, 410, 422, 451],
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user