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 jobName = process.env['GITHUB_JOB'] || '';
|
||||
const analysis_key = await getAnalysisKey();
|
||||
const languages = (await getLanguages()).sort().join(',');
|
||||
const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT] || new Date().toISOString();
|
||||
core.exportVariable(sharedEnv.CODEQL_ACTION_STARTED_AT, startedAt);
|
||||
|
|
@ -234,6 +235,7 @@ async function createStatusReport(actionName, status, cause, exception) {
|
|||
workflow_run_id: workflowRunID,
|
||||
workflow_name: workflowName,
|
||||
job_name: jobName,
|
||||
analysis_key: analysis_key,
|
||||
languages: languages,
|
||||
commit_oid: commitOid,
|
||||
ref: ref,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue