-
-
Notifications
You must be signed in to change notification settings - Fork 64
Resolve high-severity audit findings from #1057 #1067
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9e2ac20
docs: Add migration guidance for OpenAPI parser upgrade (v1.x → v3.x)
christianhelle a4218ee
fix(msbuild): track actual outputs
christianhelle 93dc911
fix(source-generator): hide transitive deps
christianhelle bff64bb
fix(core): repair AOT context generation
christianhelle 5b8bb06
fix(core): keep optional shapes explicit
christianhelle bb37c50
docs(squad): capture tooling pattern
christianhelle 9f9fb67
fix(core): harden serializer context helpers
christianhelle 4abfa3c
test: cover Swagger2 #1026 opt-in
christianhelle dee7bde
docs(squad): record audit p1 learnings
christianhelle 03d6734
docs: add upgrade note highlighting breaking changes v2.0.0
christianhelle 3b25917
fix(source-generator): prevent Refit transitive leak with PrivateAsse…
christianhelle 97bcacb
docs(squad): record #1024 resolution - transitive dependency leak fixed
christianhelle 92dc250
test(aot): prove polymorphic context runtime
christianhelle e9a3c21
Update squad state
christianhelle 7b68b69
fix: resolve build errors - path normalization, PrivateAssets test, a…
Copilot 8fbbb3d
test(core): cover context formatting edges
christianhelle c762eb5
test(tooling): prove marker and package flow
christianhelle 60e2d51
docs: clarify migration and generator usage
christianhelle b4e32d7
chore(squad): update agent learnings
christianhelle 9b83f80
Fix failing tests
christianhelle 8fe4b50
Fix failing test
christianhelle 0bb48d1
Fix smoke tests
christianhelle 6eea581
fix(test): avoid source generator pack race
christianhelle f5ab7ca
test(coverage): close remaining gaps
christianhelle 29d9f0b
test(coverage): fix patch coverage gaps
christianhelle 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
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # Current Focus | ||
|
|
||
| Fixing the remaining PR #1064 merge blockers: #1013, #1018, and #1053, with targeted regression coverage and a safety gate before merge. | ||
| Fixing the remaining open high-severity audit findings linked from issue #1057, with parallel ownership across core, tooling, docs, and an explicit review gate before merge. | ||
|
|
||
| Requested by Christian Helle. |
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,29 @@ | ||
| --- | ||
| name: "analyzer-package-audit" | ||
| description: "Verify analyzer/source-generator package dependency behavior from the packed output, not just project references" | ||
| domain: "packaging" | ||
| confidence: "high" | ||
| source: "earned" | ||
| --- | ||
|
|
||
| ## Context | ||
| Use this when auditing NuGet analyzer or source-generator packages for dependency leakage, consumer upgrades, or misleading documentation. `.csproj` metadata alone is not enough because packing can rewrite the dependency surface and bundle assemblies directly into `analyzers/dotnet/cs/`. | ||
|
|
||
| ## Patterns | ||
| - Inspect the generated `.nuspec` (or the `.nupkg` copy of it) to see the actual transitive dependency contract exposed to consumers. | ||
| - Inspect the `.nupkg` contents to distinguish: | ||
| - **transitive package dependencies** (shown in the nuspec) | ||
| - **bundled analyzer-time assemblies** (files under `analyzers/dotnet/cs/`) | ||
| - Compare the package's public README with the packed behavior. Inconsistent docs are a false-closure risk even when the code changed. | ||
| - For Refitter specifically: | ||
| - `Refitter.SourceGenerator` currently bundles `OasReader.dll` as an analyzer asset | ||
| - but still publishes `Refit` as a nuspec dependency, so consumers still get Refit transitively | ||
|
|
||
| ## Examples | ||
| - `src/Refitter.SourceGenerator/obj/Release/Refitter.SourceGenerator.1.0.0.nuspec` | ||
| - `src/Refitter.SourceGenerator/bin/Release/Refitter.SourceGenerator.1.0.0.nupkg` | ||
| - `src/Refitter.SourceGenerator/README.md` | ||
|
|
||
| ## Anti-Patterns | ||
| - Do **not** conclude "dependency leak fixed" solely because a `<PackageReference>` gained `PrivateAssets` in source or because one dependency disappeared from the nuspec. | ||
| - Do **not** ignore the packaged README; for NuGet users, that README is part of the shipped behavior. |
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.
Uh oh!
There was an error while loading. Please reload this page.