Allow pull requests, and report correct commit oid and ref
This commit is contained in:
parent
8b71cf3e5f
commit
da1e237d1e
9 changed files with 97 additions and 36 deletions
2
lib/upload-lib.js
generated
2
lib/upload-lib.js
generated
|
|
@ -133,7 +133,7 @@ async function uploadFiles(sarifFiles) {
|
|||
return false;
|
||||
}
|
||||
core.exportVariable(sentinelEnvVar, sentinelEnvVar);
|
||||
const commitOid = util.getRequiredEnvParam('GITHUB_SHA');
|
||||
const commitOid = await util.getCommitOid();
|
||||
const workflowRunIDStr = util.getRequiredEnvParam('GITHUB_RUN_ID');
|
||||
const ref = util.getRef();
|
||||
const analysisKey = await util.getAnalysisKey();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue