Skip to content

fix(fix-sourcelink-nu1902): move Source Link off vulnerable release; harden Makefile - #15

Merged
ThatRendle merged 6 commits into
mainfrom
change/fix-sourcelink-nu1902
Dec 1, 2026
Merged

ThatRendle merged 6 commits into
mainfrom
change/fix-sourcelink-nu1902

Conversation

@ThatRendle

Copy link
Copy Markdown
Contributor

Summary

  • NU1902 fix: Microsoft.SourceLink.GitHub 8.0.0 → 10.0.404 in Dcli and Dcli.Testing. 8.0.0 pulled in Microsoft.Build.Tasks.Git 8.0.0, flagged by GHSA-23fw-v26w-5fgq (CVE-2026-62900) with no patched 8.x release; with warnings-as-errors this failed every restore. Build-time only (PrivateAssets="All"), so package consumers gain no dependency.
  • SDK floor 10.0.400: global.json, docs/dependencies.md and make deps updated together.
  • Makefile hardening: validate and changes now discover change folders in the shell, quoted, and refuse names outside [A-Za-z0-9._-], so a crafted folder name under openspec/changes/ can't inject commands.
  • New packaging spec: packages carry Source Link metadata; restore fails on known-vulnerable dependencies.
  • CHANGELOG.md Security entry. Change archived to openspec/changes/archive/2026-12-01-fix-sourcelink-nu1902/ (devlog notes included).

Verification

  • make gates → BUILD_EXIT:0, TEST_EXIT:0 (890 passed), FORMAT_EXIT:0, VALIDATE_EXIT:0, GATES_EXIT:0
  • dotnet list package --vulnerable --include-transitive → no vulnerable packages in any project
  • dotnet pack -c Release → .nupkg + .snupkg for both packages; PDB Source Link maps to raw.githubusercontent.com/daemonicai/dcli/<commit>
  • Hostile folder names (x;touch pwned1, $(touch pwned2), backticks, -rf) refused in a scratch copy; no files created

🤖 Generated with Claude Code

ThatRendle and others added 6 commits December 1, 2026 15:11
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 1.1 Microsoft.SourceLink.GitHub 8.0.0 -> 10.0.404 in Dcli and Dcli.Testing
- 1.2 vulnerable-package scan clean across the solution
- 1.3 make gates green

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 2.1 Release pack of dcli and Dcli.Testing: .snupkg present, Source Link map intact
- 2.2 CHANGELOG Security entry for GHSA-23fw-v26w-5fgq
- 2.3 SDK floor 10.0.400 (global.json bump by Emmz) in dependencies.md and make deps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 3.1 validate/changes glob change folders in the shell, quoted, with an
  allowlist on names; no make-expanded CHANGES variable
- 3.2 hostile folder names refused and inert in a scratch copy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ThatRendle
ThatRendle merged commit b7f77aa into main Dec 1, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant