A team uses Copilot coding agent to work on issues. The repository requires a setup workflow that prepares the agent’s development environment before it makes changes. The workflow must install dependencies, avoid unnecessary write permissions, and use the special setup workflow filename expected by Copilot coding agent. Which option completes the setup correctly?
# File: .github/workflows/(Missing value 1)
name: Copilot setup steps
on:
(Missing value 2):
permissions:
contents: (Missing value 3)
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Verify test command is available
run: npm test -- --helpChoose an answer
Tap an option to check your answer.
Correct answer: Missing value 1 = copilot-setup-steps.yml Missing value 2 = workflow_call Missing value 3 = read.
Why this is the answer
The correct option specifies copilot-setup-steps.yml for Missing value 1, workflowcall for Missing value 2, and read for Missing value 3. copilot-setup-steps.yml is the specific filename Copilot coding agent looks for to identify its setup workflow. workflowcall is used because the Copilot agent will call this workflow as part of its operation, rather than it being triggered by a pullrequest or push event, or manually via workflowdispatch. Finally, permissions: contents: read is appropriate because the setup workflow only needs to read the repository contents to install dependencies and verify commands, not modify them, adhering to the principle of least privilege.
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