Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,21 @@ jobs:
- name: Complete Security Scan
if: always()
shell: pwsh
# Step outcomes/outputs arrive through env rather than template expansion so nothing
# attacker-influenced is ever spliced into the script (zizmor template-injection).
env:
CHECK_CSHARP_OUTCOME: ${{ steps.check-csharp.outcome }}
HAS_CSHARP: ${{ steps.check-csharp.outputs.has-csharp }}
BUILD_OUTCOME: ${{ steps.build.outcome }}
CODEQL_OUTCOME: ${{ steps.perform-codeql-analysis.outcome }}
run: |
Write-Host "=== CodeQL Security Scan Complete ===" -ForegroundColor Cyan

# Check the outcome of previous steps
$checkCsharpOutcome = "${{ steps.check-csharp.outcome }}"
$hasCsharp = "${{ steps.check-csharp.outputs.has-csharp }}"
$buildOutcome = "${{ steps.build.outcome }}"
$codeqlOutcome = "${{ steps.perform-codeql-analysis.outcome }}"
$checkCsharpOutcome = "$env:CHECK_CSHARP_OUTCOME"
$hasCsharp = "$env:HAS_CSHARP"
$buildOutcome = "$env:BUILD_OUTCOME"
$codeqlOutcome = "$env:CODEQL_OUTCOME"

# Determine overall status
$hasFailure = $false
Expand Down
Loading