Remove unused CODESCANNING_EVENT_NAME environment variable

This commit is contained in:
Henry Mercer 2023-05-31 15:37:11 +01:00
parent 9d2dd7cfea
commit bf419682de
12 changed files with 32 additions and 55 deletions

2
lib/upload-lib.js generated
View file

@ -220,7 +220,7 @@ function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, wo
base_ref: undefined,
base_sha: undefined,
};
if (actionsUtil.workflowEventName() === "pull_request") {
if (actionsUtil.getWorkflowEventName() === "pull_request") {
if (commitOid === util.getRequiredEnvParam("GITHUB_SHA") &&
mergeBaseCommitOid) {
// We're uploading results for the merge commit