Correct typo in setting upload base ref

This commit is contained in:
Robin Neatherway 2021-01-13 12:00:33 +00:00
parent a7f3c648eb
commit 884ee1d129
3 changed files with 3 additions and 3 deletions

2
lib/upload-lib.js generated
View file

@ -165,7 +165,7 @@ function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, wo
if (process.env.GITHUB_EVENT_NAME === "pull_request" &&
process.env.GITHUB_EVENT_PATH) {
const githubEvent = JSON.parse(fs.readFileSync(process.env.GITHUB_EVENT_PATH, "utf8"));
payloadObj.base_ref = `refs/heads/$githubEvent.pull_request.base.ref`;
payloadObj.base_ref = githubEvent.pull_request.base.ref;
payloadObj.base_sha = githubEvent.pull_request.base.sha;
}
}

File diff suppressed because one or more lines are too long

View file

@ -258,7 +258,7 @@ export function buildPayload(
const githubEvent = JSON.parse(
fs.readFileSync(process.env.GITHUB_EVENT_PATH, "utf8")
);
payloadObj.base_ref = `refs/heads/$githubEvent.pull_request.base.ref`;
payloadObj.base_ref = githubEvent.pull_request.base.ref;
payloadObj.base_sha = githubEvent.pull_request.base.sha;
}
}