Skip to content

Commit aa38662

Browse files
OgeonX-AiAitomatesclaude
authored
Fix: Resolve PSScriptAnalyzer warnings (#6)
* fix: resolve PSScriptAnalyzer warnings * ci: switch codeql analysis from javascript to actions Repo has no JavaScript; scan the GitHub Actions workflows instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Kim Harjamäki <kim.harjamaki@prosimo.fi> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 44ab401 commit aa38662

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
language: [ 'javascript' ]
18+
language: [ 'actions' ]
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4

scripts/validate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ finally {
5050
Pop-Location
5151
}
5252

53-
Write-Host 'CAS platform validation passed.'
53+
Write-Output 'CAS platform validation passed.'
5454

tests/Infrastructure.Tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments', '')]
2+
param()
3+
14
BeforeAll {
2-
$repoRoot = Split-Path -Parent $PSScriptRoot
5+
$repoRoot = Split-Path -Parent -Path $PSScriptRoot
36
$main = Get-Content -Raw (Join-Path $repoRoot 'infra/main.bicep')
47
$compute = Get-Content -Raw (Join-Path $repoRoot 'infra/modules/container-apps.bicep')
58
$observability = Get-Content -Raw (Join-Path $repoRoot 'infra/modules/observability.bicep')

0 commit comments

Comments
 (0)