An existing workflow already runs a planner agent and a test agent for pull requests. You need to add a security-review agent as a reusable workflow job so it runs after tests and can comment on the pull request with review findings. Which option completes the workflow?
name: multi-agent-pr
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
permissions:
contents: read
(Missing value 1): write
jobs:
planner-agent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build implementation plan
run: ./agents/plan.sh
test-agent:
needs: planner-agent
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run validation tests
run: ./agents/test.sh
security-review-agent:
(Missing value 2): test-agent
(Missing value 3): ./.github/workflows/security-review-agent.yml
with:
pr_number: ${{ github.event.pull_request.number }}Choose an answer
Tap an option to check your answer.
Correct answer: Missing value 1 = pull-requests Missing value 2 = needs Missing value 3 = uses.
Why this is the answer
The correct option completes the workflow to enable the security-review agent to run as a reusable workflow and comment on the pull request. Missing value 1 = pull-requests: The pull-requests: write permission is necessary for the security-review agent to comment on the pull request. Without this permission, the agent cannot interact with the pull request. Missing value 2 = needs: The needs: test-agent keyword ensures that the security-review-agent job runs only after the test-agent job has successfully completed. This establishes the correct execution order. Missing value 3 = uses: The uses: ./.github/workflows/security-review-agent.yml keyword specifies that the security-review-agent job will execute a reusable workflow defined in the specified path. This is the standard way to call a reusable workflow. Incorrect options: checks for Missing value 1 is not a valid permission for commenting on pull requests. if for Missing value 2 is a conditional expression, not a dependency declaration. run for Missing value 3 is used for executing shell commands, not for calling reusable workflows. issues for Missing value 1 is for managing issues, not pull request comments.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed