add analysis_key to status reports
This commit is contained in:
parent
a08742f199
commit
0e3f8311ed
3 changed files with 6 additions and 1 deletions
2
lib/util.js
generated
2
lib/util.js
generated
|
|
@ -227,6 +227,7 @@ async function createStatusReport(actionName, status, cause, exception) {
|
||||||
}
|
}
|
||||||
const workflowName = process.env['GITHUB_WORKFLOW'] || '';
|
const workflowName = process.env['GITHUB_WORKFLOW'] || '';
|
||||||
const jobName = process.env['GITHUB_JOB'] || '';
|
const jobName = process.env['GITHUB_JOB'] || '';
|
||||||
|
const analysis_key = await getAnalysisKey();
|
||||||
const languages = (await getLanguages()).sort().join(',');
|
const languages = (await getLanguages()).sort().join(',');
|
||||||
const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT] || new Date().toISOString();
|
const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT] || new Date().toISOString();
|
||||||
core.exportVariable(sharedEnv.CODEQL_ACTION_STARTED_AT, startedAt);
|
core.exportVariable(sharedEnv.CODEQL_ACTION_STARTED_AT, startedAt);
|
||||||
|
|
@ -234,6 +235,7 @@ async function createStatusReport(actionName, status, cause, exception) {
|
||||||
workflow_run_id: workflowRunID,
|
workflow_run_id: workflowRunID,
|
||||||
workflow_name: workflowName,
|
workflow_name: workflowName,
|
||||||
job_name: jobName,
|
job_name: jobName,
|
||||||
|
analysis_key: analysis_key,
|
||||||
languages: languages,
|
languages: languages,
|
||||||
commit_oid: commitOid,
|
commit_oid: commitOid,
|
||||||
ref: ref,
|
ref: ref,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -220,6 +220,7 @@ interface StatusReport {
|
||||||
"workflow_run_id": number;
|
"workflow_run_id": number;
|
||||||
"workflow_name": string;
|
"workflow_name": string;
|
||||||
"job_name": string;
|
"job_name": string;
|
||||||
|
"analysis_key": string;
|
||||||
"matrix_vars"?: string;
|
"matrix_vars"?: string;
|
||||||
"languages": string;
|
"languages": string;
|
||||||
"commit_oid": string;
|
"commit_oid": string;
|
||||||
|
|
@ -257,6 +258,7 @@ async function createStatusReport(
|
||||||
}
|
}
|
||||||
const workflowName = process.env['GITHUB_WORKFLOW'] || '';
|
const workflowName = process.env['GITHUB_WORKFLOW'] || '';
|
||||||
const jobName = process.env['GITHUB_JOB'] || '';
|
const jobName = process.env['GITHUB_JOB'] || '';
|
||||||
|
const analysis_key = await getAnalysisKey();
|
||||||
const languages = (await getLanguages()).sort().join(',');
|
const languages = (await getLanguages()).sort().join(',');
|
||||||
const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT] || new Date().toISOString();
|
const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT] || new Date().toISOString();
|
||||||
core.exportVariable(sharedEnv.CODEQL_ACTION_STARTED_AT, startedAt);
|
core.exportVariable(sharedEnv.CODEQL_ACTION_STARTED_AT, startedAt);
|
||||||
|
|
@ -265,6 +267,7 @@ async function createStatusReport(
|
||||||
workflow_run_id: workflowRunID,
|
workflow_run_id: workflowRunID,
|
||||||
workflow_name: workflowName,
|
workflow_name: workflowName,
|
||||||
job_name: jobName,
|
job_name: jobName,
|
||||||
|
analysis_key: analysis_key,
|
||||||
languages: languages,
|
languages: languages,
|
||||||
commit_oid: commitOid,
|
commit_oid: commitOid,
|
||||||
ref: ref,
|
ref: ref,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue