mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Correct base ref to include prefix
This commit is contained in:
@@ -186,7 +186,7 @@ export function buildPayload(
|
||||
mode: util.Mode
|
||||
) {
|
||||
if (mode === "actions") {
|
||||
const payloadObj = {
|
||||
const payloadObj: any = {
|
||||
commit_oid: commitOid,
|
||||
ref,
|
||||
analysis_key: analysisKey,
|
||||
@@ -213,7 +213,7 @@ export function buildPayload(
|
||||
const githubEvent = JSON.parse(
|
||||
fs.readFileSync(process.env.GITHUB_EVENT_PATH, "utf8")
|
||||
);
|
||||
payloadObj.base_ref = githubEvent.pull_request.base.ref;
|
||||
payloadObj.base_ref = `refs/heads/$githubEvent.pull_request.base.ref`;
|
||||
payloadObj.base_sha = githubEvent.pull_request.base.sha;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user