mirror of
https://github.com/github/codeql-action.git
synced 2026-01-03 21:20:09 +08:00
Add query-filters to the init complete status report
This commit is contained in:
@@ -93,6 +93,8 @@ interface InitWithConfigStatusReport extends InitStatusReport {
|
||||
trap_cache_download_size_bytes: number;
|
||||
/** Time taken to download TRAP caches, in milliseconds. */
|
||||
trap_cache_download_duration_ms: number;
|
||||
/** Stringified JSON object representing a query-filters, from the 'query-filters' config field. **/
|
||||
query_filters: string;
|
||||
}
|
||||
|
||||
/** Fields of the init status report populated when the tools source is `download`. */
|
||||
@@ -207,6 +209,7 @@ async function sendCompletedStatusReport(
|
||||
await getTotalCacheSize(config.trapCaches, logger),
|
||||
),
|
||||
trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime),
|
||||
query_filters: JSON.stringify(config.originalUserInput["query-filters"]),
|
||||
};
|
||||
await sendStatusReport({
|
||||
...initWithConfigStatusReport,
|
||||
|
||||
Reference in New Issue
Block a user