Repository navigation
Description
Description
Expected Behavior
The offline scanner image, global.json, and CI SDK selections use the same exact .NET SDK version so builds remain reproducible.
Current Behavior
Dependabot PR #331 upgrades only .oss-scanner/Dockerfile from 10.0.302-noble to 10.0.404-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb. global.json still pins 10.0.302 with rollForward: disable and allowPrerelease: false. The scanner setup requires an exact match and throws: The scanner SDK image must match global.json exactly. Update its tag and digest together.
At PR head 4ab9ae20, the offline scanner job reports Requested SDK version: 10.0.302 and asks to install that SDK or update /src/global.json, followed by the exact-match error. The aggregate Build gate consequently fails.
Possible Solution
Perform a coordinated SDK upgrade to 10.0.404 (3xx to 4xx feature band): verify the image digest against official MCR metadata, update global.json while retaining strict SDK selection, and align every other active SDK reference in workflows, tooling, tests, and documentation. Run the relevant build/test tooling and scanner validation where feasible. Link the implementation PR with a closing reference to this issue and reference #331; do not modify or close #331 manually (Dependabot should close it after main contains the update).
Steps to Reproduce
- Check out ci: bump dotnet/sdk from 10.0.302-noble to 10.0.404-noble in /.oss-scanner #331 at
4ab9ae20. - Build the offline scanner Dockerfile using the repository as context.
- Observe that its SDK image provides 10.0.404 while global.json requires 10.0.302.
- Observe the SDK-selection and exact-match failures during setup.
- See the failed aggregate Build gate linked above.
Context (Environment)
- Operating System and version as reported by
$PSVersionTable.OS: GitHub Actions Linux offline scanner container based on Ubuntu Noble. - PowerShell versions as reported by
$PSVersionTable.PSEdition: Core; the existing 7.4/7.5/7.6 module-test matrix passed on Linux, macOS, and Windows for ci: bump dotnet/sdk from 10.0.302-noble to 10.0.404-noble in /.oss-scanner #331.
Dependency Review reported no snapshot/no scanned files on #331, so it is not image-advisory evidence. Microsoft documents that rollForward: disable requires the exact SDK version.
Activity