Skip to content

Commit b5ea4f2

Browse files
authored
Integrate Attack Surface Analyzer (ASA) into CI pipeline for SDL compliance (#15247) (#15262)
1 parent 46d82e7 commit b5ea4f2

File tree

6 files changed

+659
-0
lines changed

6 files changed

+659
-0
lines changed

.ado/compliance.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,28 @@ jobs:
9898
parameters:
9999
complianceWarnOnly: ${{ parameters.complianceWarnOnly }}
100100

101+
# Attack Surface Analyzer (ASA) for SDL compliance
102+
# This is integrated into the compliance pipeline but runs independently
103+
# Note: ASA requires before/after snapshots, so we run a separate analysis
104+
- task: PowerShell@2
105+
displayName: '🛡️ Attack Surface Analyzer - Note'
106+
inputs:
107+
targetType: inline
108+
script: |
109+
Write-Host "=========================================="
110+
Write-Host "Attack Surface Analyzer (ASA) Information"
111+
Write-Host "=========================================="
112+
Write-Host ""
113+
Write-Host "ASA runs as a separate job in the PR pipeline (see stages.yml)."
114+
Write-Host "It performs before/after snapshot analysis of the build process."
115+
Write-Host ""
116+
Write-Host "For manual ASA runs or to view results:"
117+
Write-Host "1. Check PR pipeline artifacts for ASA_Results"
118+
Write-Host "2. Review docs/attack-surface-analyzer.md for guidance"
119+
Write-Host "3. Run ASA locally: dotnet tool install -g Microsoft.CST.AttackSurfaceAnalyzer.CLI"
120+
Write-Host ""
121+
Write-Host "✅ ASA integration is active in PR builds"
122+
101123
# Finalize CodeQL 3000 Task (https://aka.ms/codeql3000)
102124
# Performs static code analysis.
103125
- task: CodeQL3000Finalize@0

0 commit comments

Comments
 (0)