QuestionQ40

VerifiedDevSecOps Pipeline-Code Stage

Christopher Brown works as a DevSecOps engineer at an IT company that builds software and web applications for an e-commerce client. To automatically detect common security issues and coding errors in the company's C++ code, he ran a code scan using CodeQL in GitHub.

Which of the following entries will Christopher find for the CodeQL analysis of the C++ code?

Explanation

CodeQL identifies C++ using the language code "cpp", not "cp". When GitHub Actions runs the CodeQL analysis workflow, the resulting check entry is named using the pattern "CodeQL/Analyze (language) (event)", where the event corresponds to the workflow trigger (commonly a pull request). "push-request" is not a valid GitHub Actions event name, whereas pull request triggers are the standard and expected trigger for CodeQL analysis checks shown in the GitHub UI. This makes "CodeQL/Analyze (cpp) (pull-request)" the correct entry.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!