File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -881,6 +881,13 @@ function parseRegistries(
881
881
}
882
882
}
883
883
884
+ export function parseRegistriesWithoutCredentials ( registriesInput ?: string ) : RegistryConfigNoCredentials [ ] | undefined {
885
+ return parseRegistries ( registriesInput ) ?. map ( ( r ) => {
886
+ const { token :_ , ...registryWithoutCredentials } = r ;
887
+ return registryWithoutCredentials ;
888
+ } )
889
+ }
890
+
884
891
function isLocal ( configPath : string ) : boolean {
885
892
// If the path starts with ./, look locally
886
893
if ( configPath . indexOf ( "./" ) === 0 ) {
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ interface InitWithConfigStatusReport extends InitStatusReport {
93
93
trap_cache_download_size_bytes : number ;
94
94
/** Time taken to download TRAP caches, in milliseconds. */
95
95
trap_cache_download_duration_ms : number ;
96
+ /** Stringified JSON array of registry configuration objects, from the 'registries' config field or workflow input. **/
97
+ registries : string ;
96
98
/** Stringified JSON object representing a query-filters, from the 'query-filters' config field. **/
97
99
query_filters : string ;
98
100
}
@@ -210,6 +212,7 @@ async function sendCompletedStatusReport(
210
212
) ,
211
213
trap_cache_download_duration_ms : Math . round ( config . trapCacheDownloadTime ) ,
212
214
query_filters : JSON . stringify ( config . originalUserInput [ "query-filters" ] ) ,
215
+ registries : JSON . stringify ( configUtils . parseRegistriesWithoutCredentials ( getOptionalInput ( "registries" ) ) ) ,
213
216
} ;
214
217
await sendStatusReport ( {
215
218
...initWithConfigStatusReport ,
You can’t perform that action at this time.
0 commit comments