@@ -5,7 +5,7 @@ import * as toolrunner from "@actions/exec/lib/toolrunner";
5
5
import * as io from "@actions/io" ;
6
6
7
7
import { getOptionalInput , isSelfHostedRunner } from "./actions-util" ;
8
- import { GitHubApiCombinedDetails , GitHubApiDetails } from "./api-client" ;
8
+ import { GitHubApiDetails } from "./api-client" ;
9
9
import { CodeQL , PackInfo , setupCodeQL } from "./codeql" ;
10
10
import * as configUtils from "./config-utils" ;
11
11
import { CodeQLDefaultVersionInfo , FeatureEnablement } from "./feature-flags" ;
@@ -14,7 +14,6 @@ import { Logger, withGroupAsync } from "./logging";
14
14
import { ToolsSource } from "./setup-codeql" ;
15
15
import { ZstdAvailability } from "./tar" ;
16
16
import { ToolsDownloadStatusReport } from "./tools-download" ;
17
- import { TracerConfig , getCombinedTracerConfig } from "./tracer-config" ;
18
17
import * as util from "./util" ;
19
18
20
19
export async function initCodeQL (
@@ -68,37 +67,6 @@ export async function initConfig(
68
67
} ) ;
69
68
}
70
69
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
-
102
70
export async function runDatabaseInitCluster (
103
71
databaseInitEnvironment : Record < string , string | undefined > ,
104
72
codeql : CodeQL ,
0 commit comments