Skip to content

Commit 14a0e06

Browse files
Add PowerShell Gallery registration in lint workflow
1 parent 9c1caaa commit 14a0e06

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/__call-common-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,8 @@ jobs:
362362
run: |
363363
# PSScriptAnalyzer is already installed on GitHub runners
364364
if ($env:RUNNER_NAME -notlike 'GitHub Actions*') {
365+
Register-PSRepository -Default -InstallationPolicy Trusted
366+
Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/ -InstallationPolicy Trusted
365367
Install-Module -Name PSScriptAnalyzer -Force
366368
}
367369

0 commit comments

Comments
 (0)