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 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')