import { BatchTaskPropertyProvider , UserAccessLevels } from 'azure-services' ; import { ServiceConfiguration } from 'common' ; import { inject , injectable } from 'inversify' ; @ injectable ( ) export class ScannerBatchTaskPropertyProvider extends BatchTaskPropertyProvider { constructor ( @ inject ( ServiceConfiguration ) private readonly serviceConfig ) { super ( ) ; } public async getImageName ( ) { return ( await this . serviceConfig . getConfigValue ( 'jobManagerConfig' ) ) . scanRunnerTaskImageName ; } public getAdditionalContainerRunOptions ? ( ) { return '' ; } public getUserElevationLevel ( ) { return 'admin' ; } }