@@ -11,9 +11,8 @@ import {
1111 getRequiredInput ,
1212 isSelfHostedRunner ,
1313} from "./actions-util" ;
14- import { AnalysisKind } from "./analyses" ;
1514import { getAnalysisKey , getApiClient } from "./api-client" ;
16- import { isCodeQualityEnabled , type Config } from "./config-utils" ;
15+ import { type Config } from "./config-utils" ;
1716import { DocUrl } from "./doc-url" ;
1817import { EnvVar } from "./environment" ;
1918import { getRef } from "./git-utils" ;
@@ -290,26 +289,13 @@ export async function createStatusReportBase(
290289 const isSteadyStateDefaultSetupRun =
291290 process . env [ "CODE_SCANNING_IS_STEADY_STATE_DEFAULT_SETUP" ] === "true" ;
292291
293- // We leave `analyses` empty if we don't have a `config`, so that we don't
294- // accidentally report only `code-scanning` when we can't tell whether `code-quality`
295- // is enabled or not.
296- const analysisKinds : AnalysisKind [ ] = [ ] ;
297-
298- if ( config !== undefined ) {
299- analysisKinds . push ( AnalysisKind . CodeScanning ) ;
300-
301- if ( isCodeQualityEnabled ( config ) ) {
302- analysisKinds . push ( AnalysisKind . CodeQuality ) ;
303- }
304- }
305-
306292 const statusReport : StatusReportBase = {
307293 action_name : actionName ,
308294 action_oid : "unknown" , // TODO decide if it's possible to fill this in
309295 action_ref : actionRef ,
310296 action_started_at : actionStartedAt . toISOString ( ) ,
311297 action_version : getActionVersion ( ) ,
312- analysis_kinds : analysisKinds . join ( "," ) ,
298+ analysis_kinds : config ?. analysisKinds . join ( "," ) ,
313299 analysis_key,
314300 build_mode : config ?. buildMode ,
315301 commit_oid : commitOid ,
0 commit comments