Remove unused CODESCANNING_EVENT_NAME environment variable
This commit is contained in:
parent
9d2dd7cfea
commit
bf419682de
12 changed files with 32 additions and 55 deletions
2
lib/trap-caching.js
generated
2
lib/trap-caching.js
generated
|
|
@ -91,7 +91,7 @@ async function downloadTrapCaches(codeql, languages, logger) {
|
|||
}
|
||||
let baseSha = "unknown";
|
||||
const eventPath = process.env.GITHUB_EVENT_PATH;
|
||||
if (actionsUtil.workflowEventName() === "pull_request" &&
|
||||
if (actionsUtil.getWorkflowEventName() === "pull_request" &&
|
||||
eventPath !== undefined) {
|
||||
const event = JSON.parse(fs.readFileSync(path.resolve(eventPath), "utf-8"));
|
||||
baseSha = event.pull_request?.base?.sha || baseSha;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue