Run npm run build

This commit is contained in:
Eric Cornelissen 2020-11-19 23:03:45 +01:00
parent 483c94b974
commit 847f4ef293
14 changed files with 79 additions and 77 deletions

4
lib/upload-lib.js generated
View file

@ -75,8 +75,8 @@ async function upload(sarifPath, repositoryNwo, commitOid, ref, analysisKey, ana
.readdirSync(sarifPath)
.filter((f) => f.endsWith(".sarif"))
.map((f) => path.resolve(sarifPath, f));
for (const path of paths) {
sarifFiles.push(path);
for (const filepath of paths) {
sarifFiles.push(filepath);
}
if (sarifFiles.length === 0) {
throw new Error(`No SARIF files found to upload in "${sarifPath}".`);