@@ -51,7 +51,8 @@ import { getRepositoryNwo } from "./repository";
5151import { ToolsSource } from "./setup-codeql" ;
5252import {
5353 ActionName ,
54- StatusReportBase ,
54+ InitStatusReport ,
55+ InitWithConfigStatusReport ,
5556 createStatusReportBase ,
5657 getActionsStatus ,
5758 sendStatusReport ,
@@ -78,48 +79,6 @@ import {
7879 getErrorMessage ,
7980} from "./util" ;
8081import { validateWorkflow } from "./workflow" ;
81- /** Fields of the init status report that can be sent before `config` is populated. */
82- interface InitStatusReport extends StatusReportBase {
83- /** Value given by the user as the "tools" input. */
84- tools_input : string ;
85- /** Version of the bundle used. */
86- tools_resolved_version : string ;
87- /** Where the bundle originated from. */
88- tools_source : ToolsSource ;
89- /** Comma-separated list of languages specified explicitly in the workflow file. */
90- workflow_languages : string ;
91- }
92-
93- /** Fields of the init status report that are populated using values from `config`. */
94- interface InitWithConfigStatusReport extends InitStatusReport {
95- /** Comma-separated list of languages where the default queries are disabled. */
96- disable_default_queries : string ;
97- /** Comma-separated list of paths, from the 'paths' config field. */
98- paths : string ;
99- /** Comma-separated list of paths, from the 'paths-ignore' config field. */
100- paths_ignore : string ;
101- /** Comma-separated list of queries sources, from the 'queries' config field or workflow input. */
102- queries : string ;
103- /** Stringified JSON object of packs, from the 'packs' config field or workflow input. */
104- packs : string ;
105- /** Comma-separated list of languages for which we are using TRAP caching. */
106- trap_cache_languages : string ;
107- /** Size of TRAP caches that we downloaded, in bytes. */
108- trap_cache_download_size_bytes : number ;
109- /** Time taken to download TRAP caches, in milliseconds. */
110- trap_cache_download_duration_ms : number ;
111- /** Size of the overlay-base database that we downloaded, in bytes. */
112- overlay_base_database_download_size_bytes ?: number ;
113- /** Time taken to download the overlay-base database, in milliseconds. */
114- overlay_base_database_download_duration_ms ?: number ;
115- /** Stringified JSON array of registry configuration objects, from the 'registries' config field
116- or workflow input. **/
117- registries : string ;
118- /** Stringified JSON object representing a query-filters, from the 'query-filters' config field. **/
119- query_filters : string ;
120- /** Path to the specified code scanning config file, from the 'config-file' config field. */
121- config_file : string ;
122- }
12382
12483/** Fields of the init status report populated when the tools source is `download`. */
12584interface InitToolsDownloadFields {
0 commit comments