[Repo Assist] eng(tests): add NuGetAuditMode=all to tests/Directory.Build.props#539
Conversation
Mirror the NuGetAudit setting from src/Directory.Build.props so that transitive dependencies in test projects are also audited for known CVEs during dotnet restore. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Codex review: needs maintainer review before merge. Reviewed May 25, 2026, 9:45 AM ET / 13:45 UTC. Summary Reproducibility: not applicable. as a bug reproduction: this is a configuration-hardening PR. Source inspection does confirm the reported configuration gap between source and test props on current main. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the narrow test props change after maintainer review confirms the stricter audit posture and the AGENTS.md build/shared/tray validation passes. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this is a configuration-hardening PR. Source inspection does confirm the reported configuration gap between source and test props on current main. Is this the best way to solve the issue? Yes: adding the same MSBuild property to the shared test props is the narrowest maintainable way to align test restore auditing with the existing source-project policy. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against ef6ac8acbab2. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Clockwork Review Wisp Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
🤖 This is an automated PR from Repo Assist.
What
Adds
<NuGetAuditMode>all</NuGetAuditMode>totests/Directory.Build.props.Why
src/Directory.Build.propsalready setsNuGetAuditMode=allso that transitive NuGet dependencies in source projects are checked for known CVEs at restore time. Thetests/Directory.Build.propslacked this setting, meaning test projects' transitive dependencies were only audited at the "direct" level (the SDK default).This one-line change mirrors the existing security posture across the whole repo. No test output or build steps are affected — the audit runs during
dotnet restoreand surfaces advisories as warnings/errors.Test Status
dotnet restore tests/OpenClaw.Shared.Testssucceeds with no new warnings or advisories on the current dependency graph.