The SDK content test, when running in the Alpine build leg for 7.0, ends up comparing the linux-x64 version of the MS SDK tarball instead of the linux-musl-x64 version. This is not an accurate test. Since it's Alpine, it should be checking the content of the linux-musl-x64 version to ensure that content matches correctly.
This happens because the PortableRid MSBuild property is set to linux-x64 when it should be set to `linux-musl-x64. This is set correctly in the 6.0 branch:
https://github.com/dotnet/installer/blob/1b5e0e204956294804c290739a41e440d184d0af/src/SourceBuild/tarball/content/Directory.Build.props#L184
This was discovered while testing the changes in dotnet/installer#13074. Because PortableRid is set correctly there, it ends up using the linux-musl-x64 version of the tarball and exposed another unrelated issue.
Related to dotnet/installer#17324.