Use delay instead of wait
Need to also change the signature of delay to allow this to happen.
This commit is contained in:
parent
df9b50ee5f
commit
4e80a80354
6 changed files with 10 additions and 16 deletions
2
lib/init-action-post-helper.js
generated
2
lib/init-action-post-helper.js
generated
|
|
@ -139,7 +139,7 @@ async function removeUploadedSarif(uploadFailedSarifResult, logger) {
|
|||
try {
|
||||
const repositoryNwo = (0, repository_1.parseRepositoryNwo)((0, util_1.getRequiredEnvParam)("GITHUB_REPOSITORY"));
|
||||
// Wait to make sure the analysis is ready for download before requesting it.
|
||||
await (0, util_1.wait)(5000);
|
||||
await (0, util_1.delay)(5000);
|
||||
// Get the analysis associated with the uploaded sarif
|
||||
const analysisInfo = await client.request("GET /repos/:owner/:repo/code-scanning/analyses?sarif_id=:sarif_id", {
|
||||
owner: repositoryNwo.owner,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue