Skip to content

Commit c6cd45a

Browse files
Merge branch 'main' into integrate3.0
2 parents 6b2cba1 + 3ea4056 commit c6cd45a

File tree

67 files changed

+2582
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2582
-218
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

.ado/jobs/attack-surface-analyzer.yml

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

.ado/stages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ stages:
4141
AgentPool: ${{ parameters.AgentPool }}
4242
buildNuGetOnly: true
4343

44+
# Attack Surface Analyzer for SDL compliance
45+
- template: jobs/attack-surface-analyzer.yml
46+
parameters:
47+
buildEnvironment: ${{ parameters.buildEnvironment }}
48+
AgentPool: ${{ parameters.AgentPool }}
49+
complianceWarnOnly: true
50+
4451
- stage: IntegrationTests
4552
displayName: Tests 🧪
4653
dependsOn: Setup

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,16 @@ Build and see if your solution works. Consult [Building React-Native-Windows](ht
123123

124124
Testing is a key component in the development workflow. If your changes affect existing test cases, or you're working on brand new features and also the accompanying test cases, see [End-to-End Testing](https://github.com/microsoft/react-native-windows/blob/main/docs/e2e-testing.md) for more information about how to validate your work locally.
125125

126+
### 🛡️ Security & Compliance
127+
128+
React Native Windows follows Microsoft's Secure Development Lifecycle (SDL) requirements. As part of this commitment:
129+
130+
- **Attack Surface Analyzer (ASA)** runs automatically on every PR to detect security regressions during the build process. This ensures that builds don't inadvertently weaken the OS security configuration.
131+
- If ASA detects changes in your PR, review the artifacts in the PR build to understand the security implications.
132+
- For more information about ASA, see [Attack Surface Analyzer documentation](https://github.com/microsoft/react-native-windows/blob/main/docs/attack-surface-analyzer.md).
133+
134+
Most changes won't trigger ASA findings, but if yours does, the documentation explains how to review and address the findings.
135+
126136
### ✅ Code Review
127137

128138
When you'd like the team to review your PR, (even if the work is not yet fully-complete), open a PR so that the team can review your work and provide comments, suggestions, and request changes. It may take several cycles, but the end result will be solid, testable, conformant code that is safe for us to merge.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ Search the [existing issues](https://github.com/microsoft/react-native-windows/i
5858
## Documentation
5959
React Native has [great documentation](https://reactnative.dev/docs/getting-started). React Native for Windows adds its own separate [Windows and macOS documentation](https://microsoft.github.io/react-native-windows/) for desktop platform information like API docs and blog updates.
6060

61+
### Security Documentation
62+
- **[Security Configuration Guide](https://github.com/microsoft/react-native-windows/blob/main/docs/security-configuration.md)** - Comprehensive guide for SDL-compliant security configurations
63+
- **[Security Best Practices](https://github.com/microsoft/react-native-windows/blob/main/docs/security-best-practices.md)** - Secure coding patterns and security API usage
64+
6165
### Examples
6266
- Using the CLI in the [Getting Started](https://microsoft.github.io/react-native-windows/docs/getting-started) guide will set you up with a sample React Native for Windows app that you can begin editing right away.
6367
- Check the [samples repo](https://github.com/microsoft/react-native-windows-samples) for more standalone samples.

change/@office-iss-react-native-win32-19e6be85-9a87-4def-b6f1-be26af34deb3.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

change/@office-iss-react-native-win32-3ebb0e30-9b29-4f25-b5c2-42f2675f97c0.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

change/@office-iss-react-native-win32-87fb6d4f-2fe1-4cda-9e6c-f418341a9bb9.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

change/@react-native-windows-automation-channel-5378d2f8-a489-44f7-8cdb-5bbff9663bcf.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

change/@react-native-windows-automation-channel-c34794b5-a4c1-4b45-a0b9-ef9c44097339.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)