@@ -5,7 +5,7 @@ import * as toolrunner from "@actions/exec/lib/toolrunner";
55import * as io from "@actions/io" ;
66
77import { getOptionalInput , isSelfHostedRunner } from "./actions-util" ;
8- import { GitHubApiCombinedDetails , GitHubApiDetails } from "./api-client" ;
8+ import { GitHubApiDetails } from "./api-client" ;
99import { CodeQL , PackInfo , setupCodeQL } from "./codeql" ;
1010import * as configUtils from "./config-utils" ;
1111import { CodeQLDefaultVersionInfo , FeatureEnablement } from "./feature-flags" ;
@@ -14,7 +14,6 @@ import { Logger, withGroupAsync } from "./logging";
1414import { ToolsSource } from "./setup-codeql" ;
1515import { ZstdAvailability } from "./tar" ;
1616import { ToolsDownloadStatusReport } from "./tools-download" ;
17- import { TracerConfig , getCombinedTracerConfig } from "./tracer-config" ;
1817import * as util from "./util" ;
1918
2019export async function initCodeQL (
@@ -68,37 +67,6 @@ export async function initConfig(
6867 } ) ;
6968}
7069
71- export async function runInit (
72- codeql : CodeQL ,
73- config : configUtils . Config ,
74- sourceRoot : string ,
75- processName : string | undefined ,
76- registriesInput : string | undefined ,
77- apiDetails : GitHubApiCombinedDetails ,
78- logger : Logger ,
79- ) : Promise < TracerConfig | undefined > {
80- const { registriesAuthTokens, qlconfigFile } =
81- await configUtils . generateRegistries (
82- registriesInput ,
83- config . tempDir ,
84- logger ,
85- ) ;
86- const databaseInitEnvironment = {
87- GITHUB_TOKEN : apiDetails . auth ,
88- CODEQL_REGISTRIES_AUTH : registriesAuthTokens ,
89- } ;
90- await runDatabaseInitCluster (
91- databaseInitEnvironment ,
92- codeql ,
93- config ,
94- sourceRoot ,
95- processName ,
96- qlconfigFile ,
97- logger ,
98- ) ;
99- return await getCombinedTracerConfig ( codeql , config ) ;
100- }
101-
10270export async function runDatabaseInitCluster (
10371 databaseInitEnvironment : Record < string , string | undefined > ,
10472 codeql : CodeQL ,
0 commit comments