Skip to content

Commit

Permalink
Move psscriptanalzyer folder and associated PSSA config file, as the …
Browse files Browse the repository at this point in the history
….github folder was not being loaded into the runner.
  • Loading branch information
jonnybottles committed Nov 20, 2024
1 parent ba25ed2 commit e17f82b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/psscriptanalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
Write-Host "Current location: $(Get-Location)"
Write-Host "GITHUB_WORKSPACE: $env:GITHUB_WORKSPACE"
$settingsPath = Join-Path $env:GITHUB_WORKSPACE '.github' 'psscriptanalyzer' 'PSScriptAnalyzerSettings.psd1'
$settingsPath = Join-Path $env:GITHUB_WORKSPACE 'Hawk' 'tests' 'psscriptanalyzer' 'PSScriptAnalyzerSettings.psd1'
Write-Host "Settings path: $settingsPath"
Write-Host "`nVerifying .github structure:"
Get-ChildItem -Path (Join-Path $env:GITHUB_WORKSPACE '.github') -Recurse |
Write-Host "`nVerifying tests structure:"
Get-ChildItem -Path (Join-Path $env:GITHUB_WORKSPACE 'Hawk' 'tests') -Recurse |
Select-Object FullName
- name: Install PSScriptAnalyzer
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Run PSScriptAnalyzer
shell: pwsh
run: |
$settingsPath = Join-Path $env:GITHUB_WORKSPACE '.github' 'psscriptanalyzer' 'PSScriptAnalyzerSettings.psd1'
$settingsPath = Join-Path $env:GITHUB_WORKSPACE 'Hawk' 'tests' 'psscriptanalyzer' 'PSScriptAnalyzerSettings.psd1'
Write-Host "Using settings file: $settingsPath"
if (-not (Test-Path $settingsPath)) {
Expand Down

0 comments on commit e17f82b

Please sign in to comment.