Await commitOid

This commit is contained in:
Nora 2023-10-09 07:43:35 +00:00
parent aed2e7f47f
commit 8193a92e41
3 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ async function uploadDatabases(repositoryNwo, config, apiDetails, logger) {
const bundledDb = await (0, util_1.bundleDb)(config, language, codeql, language);
const bundledDbSize = fs.statSync(bundledDb).size;
const bundledDbReadStream = fs.createReadStream(bundledDb);
const commitOid = actionsUtil.getCommitOid(actionsUtil.getRequiredInput("checkout_path"));
const commitOid = await actionsUtil.getCommitOid(actionsUtil.getRequiredInput("checkout_path"));
try {
await client.request(`POST https://uploads.github.com/repos/:owner/:repo/code-scanning/codeql/databases/:language?name=:name?commit_oid=:commit_oid`, {
owner: repositoryNwo.owner,