-
Notifications
You must be signed in to change notification settings - Fork 335
Enable SDL Roslyn analysis (incl. internal IA* analyzers) in the OneBranch build #4464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
paulmedynski
wants to merge
16
commits into
main
Choose a base branch
from
dev/paul/onebranch-2025-roslyn
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0f6e8ea
Standardize APIScan registration and SDL break policy in OneBranch pi…
paulmedynski 3e8cbb9
Wire OneBranch SDL break/TSA to breakOnSdlError parameter
paulmedynski 2963384
Decouple TSA from breakOnSdlError; hardcode TSA per pipeline
paulmedynski 42d199d
Enable SDL Roslyn analysis (incl. internal IA* analyzers) in the OneB…
paulmedynski f6db72b
Address PR #4464 review feedback (analyzer step comments + hardening)
paulmedynski bef5a76
Refine internal analyzer pipeline configuration
paulmedynski 9adb526
Fix Roslyn analyzer pipeline integration
paulmedynski a7d1581
Address Roslyn review feedback for PR #4464
paulmedynski f884e0d
Clarifying NuGet.config changes and other documentation.
paulmedynski ffbc59c
Address PR #4464 review feedback and document SDL break severity
paulmedynski 0b0aa6f
Fix PackageCompatibility restore by isolating its package source mapping
paulmedynski 58638f9
Address PR #4464 feedback: narrow analysis to latest-recommended
paulmedynski f6417d0
Remove orphaned TargetOs properties
paulmedynski bdc166e
Keep TreatWarningsAsErrors=false in the Roslyn analysis pass
paulmedynski 8624c52
Regenerate SDL baseline from run 26240.2
paulmedynski 8b544ae
Pass real build versioning into the Roslyn analysis build
paulmedynski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <!-- Analysis builds select this file explicitly. Keep governed and local in sync with NuGet.config. --> | ||
| <packageSources> | ||
| <clear /> | ||
|
|
||
| <!-- Local contains packages produced by this repository for cross-package development and CI. --> | ||
| <add key="local" value="packages/" /> | ||
|
|
||
| <!-- Governed contains vetted external dependencies and published SqlClient packages. --> | ||
| <add key="governed" value="https://sqlclientdrivers.pkgs.visualstudio.com/public/_packaging/sqlclient/nuget/v3/index.json" /> | ||
|
|
||
| <!-- Internal analyzers contains private Microsoft analyzer packages used only by analysis builds. --> | ||
| <add key="internal-analyzers" value="%INTERNAL_ANALYZERS_FEED%" /> | ||
| </packageSources> | ||
| <packageSourceMapping> | ||
| <!-- Only packages produced by this repository may be restored from the local feed. --> | ||
| <packageSource key="local"> | ||
| <package pattern="Microsoft.Data.SqlClient" /> | ||
| <package pattern="Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider" /> | ||
| <package pattern="Microsoft.Data.SqlClient.Extensions.Abstractions" /> | ||
| <package pattern="Microsoft.Data.SqlClient.Extensions.Azure" /> | ||
| <package pattern="Microsoft.Data.SqlClient.Internal.Logging" /> | ||
| <package pattern="Microsoft.SqlServer.Server" /> | ||
| </packageSource> | ||
| <!-- | ||
| NuGet uses the most specific matching pattern to determine eligible sources. Because local | ||
| uses exact package IDs, governed must repeat them; otherwise those packages could only restore | ||
| from local and would not fall back to governed when no local artifact is available. The "*" | ||
| pattern makes governed eligible for every other dependency. | ||
| --> | ||
| <packageSource key="governed"> | ||
| <package pattern="*" /> | ||
| <package pattern="Microsoft.Data.SqlClient" /> | ||
| <package pattern="Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider" /> | ||
| <package pattern="Microsoft.Data.SqlClient.Extensions.Abstractions" /> | ||
| <package pattern="Microsoft.Data.SqlClient.Extensions.Azure" /> | ||
| <package pattern="Microsoft.Data.SqlClient.Internal.Logging" /> | ||
| <package pattern="Microsoft.SqlServer.Server" /> | ||
| </packageSource> | ||
| <!-- | ||
| Use the Microsoft.Internal.* prefix instead of only Microsoft.Internal.Analyzers so companion | ||
| or transitive packages in the same internal namespace also restore from this feed. This prefix | ||
| is more specific than the governed/local "*" patterns, so NuGet gives it precedence. | ||
| --> | ||
| <packageSource key="internal-analyzers"> | ||
| <package pattern="Microsoft.Internal.*" /> | ||
| </packageSource> | ||
| </packageSourceMapping> | ||
| </configuration> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows the Official pipelines to inject the internal feed URL.