Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GitHub Exam GitHub-Advanced-Security Topic 7 Question 6 Discussion

Actual exam question for GitHub's GitHub-Advanced-Security exam
Question #: 6
Topic #: 7
[All GitHub-Advanced-Security Questions]

-- [Use Code Scanning with CodeQL]

How would you build your code within the CodeQL analysis workflow? (Each answer presents a complete solution. Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: D, F

Comprehensive and Detailed Explanation:

When setting up CodeQL analysis for compiled languages, there are two primary methods to build your code:

GitHub Docs

Autobuild: CodeQL attempts to automatically build your codebase using the most likely build method. This is suitable for standard build processes.

GitHub Docs

Custom Build Steps: For complex or non-standard build processes, you can implement custom build steps by specifying explicit build commands in your workflow. This provides greater control over the build process.

GitHub Docs

The init action initializes the CodeQL analysis but does not build the code. The jobs.analyze.runs-on specifies the operating system for the runner but is not directly related to building the code. Uploading compiled binaries is not a method supported by CodeQL for analysis.


Contribute your Thoughts:

Annice
3 days ago
I prefer to upload compiled binaries for faster analysis.
upvoted 0 times
...
Tracey
9 days ago
I would also consider implementing custom build steps for more control over the process.
upvoted 0 times
...
Lisha
15 days ago
I agree with Wynell, using CodeQL's init action seems like the right approach.
upvoted 0 times
...
Willard
19 days ago
B and F, of course! Who doesn't love a good init action and an autobuild? Let's get this party started!
upvoted 0 times
Elvera
2 days ago
User 1: I always start with CodeQL's init action.
upvoted 0 times
...
...
Wynell
27 days ago
I think I would use CodeQL's init action to build my code.
upvoted 0 times
...

Save Cancel