File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/functions/public/Auth Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 156156 }
157157
158158 Write-Verbose " Found [$ ( $selectedInstallations.Count ) ] installations for the target."
159+ $moduleName = $script :Module.Name
160+ $moduleVersion = $script :PSModuleInfo.ModuleVersion
159161 $contextParamList = $selectedInstallations | ForEach-Object - ThrottleLimit $ThrottleLimit - Parallel {
160- Import-Module - Name $script :Module .Name - RequiredVersion $script :PSModuleInfo .ModuleVersion - Force - ErrorAction Stop
162+ Import-Module - Name $using :moduleName - RequiredVersion $using :moduleVersion - Force - ErrorAction Stop
161163 $installation = $_
162164 Write-Verbose " Processing installation [$ ( $installation.Target.Name ) ] [$ ( $installation.id ) ]"
163165 $token = New-GitHubAppInstallationAccessToken - Context $Context - ID $installation.id
You can’t perform that action at this time.
0 commit comments