From c634d33fb86b95bc66359ca8c1365f397b746af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Harjam=C3=A4ki?= Date: Fri, 3 Jul 2026 14:05:01 +0300 Subject: [PATCH 1/2] fix: resolve PSScriptAnalyzer warnings --- scripts/validate.ps1 | 2 +- tests/Infrastructure.Tests.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/validate.ps1 b/scripts/validate.ps1 index 2de2ca5..3cf471f 100644 --- a/scripts/validate.ps1 +++ b/scripts/validate.ps1 @@ -50,5 +50,5 @@ finally { Pop-Location } -Write-Host 'CAS platform validation passed.' +Write-Output 'CAS platform validation passed.' diff --git a/tests/Infrastructure.Tests.ps1 b/tests/Infrastructure.Tests.ps1 index 40d4635..7180c6c 100644 --- a/tests/Infrastructure.Tests.ps1 +++ b/tests/Infrastructure.Tests.ps1 @@ -1,5 +1,8 @@ +[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments', '')] +param() + BeforeAll { - $repoRoot = Split-Path -Parent $PSScriptRoot + $repoRoot = Split-Path -Parent -Path $PSScriptRoot $main = Get-Content -Raw (Join-Path $repoRoot 'infra/main.bicep') $compute = Get-Content -Raw (Join-Path $repoRoot 'infra/modules/container-apps.bicep') $observability = Get-Content -Raw (Join-Path $repoRoot 'infra/modules/observability.bicep') From 6b1f7a14150132f7ee4239b6e44f706549f78ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Harjam=C3=A4ki?= Date: Fri, 3 Jul 2026 18:23:13 +0300 Subject: [PATCH 2/2] 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 --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 86eaa2a..e5ed9ed 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript' ] + language: [ 'actions' ] steps: - name: Checkout repository uses: actions/checkout@v4