@@ -6,7 +6,7 @@ import * as io from "@actions/io";
6
6
import * as yaml from "js-yaml" ;
7
7
8
8
import { getOptionalInput , isSelfHostedRunner } from "./actions-util" ;
9
- import { GitHubApiCombinedDetails , GitHubApiDetails } from "./api-client" ;
9
+ import { GitHubApiDetails } from "./api-client" ;
10
10
import { CodeQL , setupCodeQL } from "./codeql" ;
11
11
import * as configUtils from "./config-utils" ;
12
12
import { CodeQLDefaultVersionInfo , FeatureEnablement } from "./feature-flags" ;
@@ -15,7 +15,6 @@ import { Logger, withGroupAsync } from "./logging";
15
15
import { ToolsSource } from "./setup-codeql" ;
16
16
import { ZstdAvailability } from "./tar" ;
17
17
import { ToolsDownloadStatusReport } from "./tools-download" ;
18
- import { TracerConfig , getCombinedTracerConfig } from "./tracer-config" ;
19
18
import * as util from "./util" ;
20
19
21
20
export async function initCodeQL (
@@ -69,37 +68,6 @@ export async function initConfig(
69
68
} ) ;
70
69
}
71
70
72
- export async function runInit (
73
- codeql : CodeQL ,
74
- config : configUtils . Config ,
75
- sourceRoot : string ,
76
- processName : string | undefined ,
77
- registriesInput : string | undefined ,
78
- apiDetails : GitHubApiCombinedDetails ,
79
- logger : Logger ,
80
- ) : Promise < TracerConfig | undefined > {
81
- const { registriesAuthTokens, qlconfigFile } =
82
- await configUtils . generateRegistries (
83
- registriesInput ,
84
- config . tempDir ,
85
- logger ,
86
- ) ;
87
- const databaseInitEnvironment = {
88
- GITHUB_TOKEN : apiDetails . auth ,
89
- CODEQL_REGISTRIES_AUTH : registriesAuthTokens ,
90
- } ;
91
- await runDatabaseInitCluster (
92
- databaseInitEnvironment ,
93
- codeql ,
94
- config ,
95
- sourceRoot ,
96
- processName ,
97
- qlconfigFile ,
98
- logger ,
99
- ) ;
100
- return await getCombinedTracerConfig ( codeql , config ) ;
101
- }
102
-
103
71
export async function runDatabaseInitCluster (
104
72
databaseInitEnvironment : Record < string , string | undefined > ,
105
73
codeql : CodeQL ,
0 commit comments