mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Change analyses to analysis_kinds
This commit is contained in:
8
lib/status-report.js
generated
8
lib/status-report.js
generated
@@ -161,11 +161,11 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
||||
// We leave `analyses` empty if we don't have a `config`, so that we don't
|
||||
// accidentally report only `code-scanning` when we can't tell whether `code-quality`
|
||||
// is enabled or not.
|
||||
const analyses = [];
|
||||
const analysisKinds = [];
|
||||
if (config !== undefined) {
|
||||
analyses.push(analyses_1.AnalysisKind.CodeScanning);
|
||||
analysisKinds.push(analyses_1.AnalysisKind.CodeScanning);
|
||||
if ((0, config_utils_1.isCodeQualityEnabled)(config)) {
|
||||
analyses.push(analyses_1.AnalysisKind.CodeQuality);
|
||||
analysisKinds.push(analyses_1.AnalysisKind.CodeQuality);
|
||||
}
|
||||
}
|
||||
const statusReport = {
|
||||
@@ -174,7 +174,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
||||
action_ref: actionRef,
|
||||
action_started_at: actionStartedAt.toISOString(),
|
||||
action_version: (0, actions_util_1.getActionVersion)(),
|
||||
analyses: analyses.join(","),
|
||||
analysis_kinds: analysisKinds.join(","),
|
||||
analysis_key,
|
||||
build_mode: config?.buildMode,
|
||||
commit_oid: commitOid,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -93,7 +93,7 @@ export interface StatusReportBase {
|
||||
/** The name of the Actions event that triggered the workflow. */
|
||||
actions_event_name?: string;
|
||||
/** Comma-separated list of the kinds of analyses we are performing. */
|
||||
analyses?: string;
|
||||
analysis_kinds?: string;
|
||||
/** Analysis key, normally composed from the workflow path and job name. */
|
||||
analysis_key: string;
|
||||
/** Build mode, if specified. */
|
||||
@@ -293,13 +293,13 @@ export async function createStatusReportBase(
|
||||
// We leave `analyses` empty if we don't have a `config`, so that we don't
|
||||
// accidentally report only `code-scanning` when we can't tell whether `code-quality`
|
||||
// is enabled or not.
|
||||
const analyses: AnalysisKind[] = [];
|
||||
const analysisKinds: AnalysisKind[] = [];
|
||||
|
||||
if (config !== undefined) {
|
||||
analyses.push(AnalysisKind.CodeScanning);
|
||||
analysisKinds.push(AnalysisKind.CodeScanning);
|
||||
|
||||
if (isCodeQualityEnabled(config)) {
|
||||
analyses.push(AnalysisKind.CodeQuality);
|
||||
analysisKinds.push(AnalysisKind.CodeQuality);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ export async function createStatusReportBase(
|
||||
action_ref: actionRef,
|
||||
action_started_at: actionStartedAt.toISOString(),
|
||||
action_version: getActionVersion(),
|
||||
analyses: analyses.join(","),
|
||||
analysis_kinds: analysisKinds.join(","),
|
||||
analysis_key,
|
||||
build_mode: config?.buildMode,
|
||||
commit_oid: commitOid,
|
||||
|
||||
Reference in New Issue
Block a user