nerdexam
Microsoft

GH-500 · Question #57

The autobuild step in the CodeQL workflow has failed. What should you do?

The correct answer is C. Remove the autobuild step from your code scanning workflow and add specific build steps. If auto build fails (which attempts to automatically detect how to build your project), you shoulddisable itin your workflow andreplace it with explicit build commands, using steps like run: make or run: ./gradlew build. This ensures CodeQL can still extract and analyze the…

Configure and use Code Scanning with CodeQL

Question

The autobuild step in the CodeQL workflow has failed. What should you do?

Options

  • ACompile the source code.
  • BUse CodeQL, which implicitly detects the supported languages in your code base.
  • CRemove the autobuild step from your code scanning workflow and add specific build steps.
  • DRemove specific build steps.

How the community answered

(23 responses)
  • B
    4% (1)
  • C
    83% (19)
  • D
    13% (3)

Explanation

If auto build fails (which attempts to automatically detect how to build your project), you shoulddisable itin your workflow andreplace it with explicit build commands, using steps like run: make or run: ./gradlew build. This ensures CodeQL can still extract and analyze the code correctly.

Topics

#CodeQL#Autobuild#Troubleshooting#Custom build steps

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice