Codeql action unable to build .NET project randomly
I have recently updated my project to CodeQL v4 action: https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/837 and as part of CI, CodeQL action ran successfully: https://github.com/alexaka1/distroless-dotnet-healthchecks/actions/runs/18435151787?pr=837
However a few days ago all of CodeQL runs are failing eg: https://github.com/alexaka1/distroless-dotnet-healthchecks/actions/runs/18507573818?pr=857
So I have tried to add manual build steps according to the docs: https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/862
However CodeQL is still failing! https://github.com/alexaka1/distroless-dotnet-healthchecks/actions/runs/18557037290/job/52896877729?pr=862
I do not know what I am doing wrong, or why suddenly CodeQL started to fail even on the same codebase that has successful CodeQL runs in the past with this very version.
Looks like the same issue as in https://github.com/github/codeql-action/issues/3207 (which is the last issue reported before this one); see my reply there
Thanks! That issue is for on macos specifically, so it felt appropriate to create this issue as a separate one.
That issue is for on macos specifically
I think that just happened to be where the problem manifested for that user. We had yours and another report of the same problem on Ubuntu. As far as I can tell, it is due to .NET 10 rc2 in both cases and there's nothing different between macOS and Ubuntu.
In any case, what I wrote there about .NET 10 not being supported yet applies either way. Our team that looks after C# is aware that something broke between rc1 and rc2 and will look into that as part of their work on adding support for .NET 10.