Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CodeQL autobuild still fails when project uses dotnet 9.0 #18954

Answered by mbg
Gigas002 asked this question in Q&A
Discussion options

Is this a bug or expected issue?

Action itself is dead simple: https://github.com/Gigas002/dotnet_gh_deploy/blob/master/.github/workflows/codeql.yml
But looking at logs, codeql tries to use dotnet 8.0 instead, which fails: https://github.com/Gigas002/dotnet_gh_deploy/actions/runs/13724205415/job/38386637583

You must be logged in to vote

Hi @Gigas002,

The default version of dotnet on ubuntu-latest is currently 8.0.112, so that is what CodeQL uses. If you are targeting a 9.x project, then you will need to install that version of using a setup-dotnet step in your workflow before initialising CodeQL.

Replies: 1 comment 1 reply

Comment options

Hi @Gigas002,

The default version of dotnet on ubuntu-latest is currently 8.0.112, so that is what CodeQL uses. If you are targeting a 9.x project, then you will need to install that version of using a setup-dotnet step in your workflow before initialising CodeQL.

You must be logged in to vote
1 reply
Comment options

I see, that makes sense. Thank you for explanation

Answer selected by Gigas002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /