試験GH-600 トピック1 問題50 スレッド

Microsoft GH-600のリアル試験問題集
問題 #: 50
トピック #: 1
Drag and Drop Question
You have a GitHub repository that uses GitHub Actions for CI on pull requests.
You have a GitHub Copilot coding agent that opens pull requests for backlog items, and your company requires automated checks for agent-generated changes.
You plan to standardize success criteria so that pull requests created by agents only succeed when unit tests pass and CodeQL analysis completes.
You need to configure a GitHub Actions workflow that runs on pull requests, executes unit tests, and performs CodeQL analysis.
How should you complete the workflow? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

おすすめの解答:


Explanation:
Box 1: npm test
npm test (or mvn test, pytest, dotnet test depending on your language stack).
The run keyword requires a shell command to execute your test runner.
Box 2: init
The CodeQL workflow must initialize its database and environment before building code. The official action for this is github/codeql-action/init.
Box 3: analyze
After the code is prepared (and built if using a compiled language), the final step scans the codebase and uploads the SARIF results to GitHub Security. The official action is github/codeql- action/analyze.
Reference:
https://gitprotect.io/blog/github-actions-how-to-use-it-for-security-and-compliance-needs/

Tsuchiya 2026-08-20 04:58:14

コメント

正解:
?」こちらは投票コメントになっております。普通のコメントに切り替えます。
ニックネーム: 送信 キャンセル
投票コメントをあげるごとに、選択した解答の投票数を1つ増やすことができます。

他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡