Skip to content

Align .NET SDK pins with the offline scanner image upgrade to 10.0.404 #333

Open

Description

@SamErde

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

  1. Check out ci: bump dotnet/sdk from 10.0.302-noble to 10.0.404-noble in /.oss-scanner #331 at 4ab9ae20.
  2. Build the offline scanner Dockerfile using the repository as context.
  3. Observe that its SDK image provides 10.0.404 while global.json requires 10.0.302.
  4. Observe the SDK-selection and exact-match failures during setup.
  5. See the failed aggregate Build gate linked above.

Context (Environment)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions