Join the discussion
Question 27/30
You have a GitHub repository that uses the GitHub Copilot coding agent.
Your company restricts GitHub Actions secrets.
Developers need the Copilot coding agent to call an internal dependency-scanning API during its run. The API requires an access token.
You need to ensure that the Copilot coding agent can use the token during execution without accessing the repository's Actions secrets and variables. The solution must prevent exposing the token in plaintext.
What should you do?
Your company restricts GitHub Actions secrets.
Developers need the Copilot coding agent to call an internal dependency-scanning API during its run. The API requires an access token.
You need to ensure that the Copilot coding agent can use the token during execution without accessing the repository's Actions secrets and variables. The solution must prevent exposing the token in plaintext.
What should you do?
Correct Answer: B
You should add the token as an Agent secret specifically designed for the GitHub Copilot cloud agent environment.
Repository administrators can configure dedicated Agents secrets to provide the Copilot coding agent with secure access to external resources and APIs. This allows the agent to consume the token natively during its sandboxed background execution without touching standard GitHub Actions repository secrets or variables.
Reference:
https://docs.github.com/en/rest/copilot/copilot-coding-agent-management
Repository administrators can configure dedicated Agents secrets to provide the Copilot coding agent with secure access to external resources and APIs. This allows the agent to consume the token natively during its sandboxed background execution without touching standard GitHub Actions repository secrets or variables.
Reference:
https://docs.github.com/en/rest/copilot/copilot-coding-agent-management
Add Comments
- Other Question (30q)
- Q1. You have a GitHub Enterprise Cloud Organization that uses the GitHub Copilot coding agent....
- Q2. Case Study 1 - Contoso, Ltd Overview Contoso Ltd. is a software development company locate...
- Q3. A designated top-level instructions file is used by some agentic tools to describe overall...
- Q4. Your organization requires that any workflow file changes proposed by an autonomous agent ...
- Q5. You have a multi-agent GitHub Actions workflow that uploads review artifacts for each run....
- Q6. Your organization wants to ensure the Copilot coding agent cannot push directly to main, a...
- Q7. Hotspot Question Your company uses Microsoft Visual Studio Code and GitHub Copilot Chat. Y...
- Q8. Hotspot Question You have a GitHub repository that uses the GitHub Copilot coding agent to...
- Q9. You are debugging an agentic workflow that intermittently fails specific tool calls with r...
- Q10. Drag and Drop Question You have a GitHub repository that has a GitHub Actions workflow. Th...
- Q11. While using agent mode in VS Code, you want Copilot to run a specific test suite as a vali...
- Q12. Drag and Drop Question You have a GitHub repository that runs an agentic software developm...
- Q13. You have a GitHub Enterprise repository. An agent opens pull requests to the main branch. ...
- Q14. You have multiple GitHub Copilot coding agents that run tasks concurrently. You are monito...
- Q15. You are using GitHub Copilot Chat's agent mode in VS Code and want it to autonomously use ...
- Q16. An agent working through the Copilot coding agent in GitHub Actions needs additional build...
- Q17. Case Study 1 - Contoso, Ltd Overview Contoso Ltd. is a software development company locate...
- Q18. You have a GitHub Copilot coding agent named Orchestrator that runs a multi-phase workflow...
- Q19. You need finer control, selecting specific files and describing precise natural-language c...
- Q20. You are troubleshooting why a Copilot coding agent pull request keeps failing CI checks af...
- Q21. Hotspot Question You have a GitHub repository that uses the following GrtHub Copilot CLI c...
- Q22. Drag and Drop Question You have a GitHub Enterprise Cloud Organization that uses the GitHu...
- Q23. You have a GitHub repository that contains an agent named Orchestrator.Orchestrator delega...
- Q24. Hotspot Question You have a GitHub repository that uses GitHub Copilot Chat in Microsoft V...
- Q25. You want the GitHub Copilot coding agent to follow project-specific conventions (coding st...
- Q26. After several long agentic sessions, you notice degraded response quality and want the age...
- Q27. You have a GitHub repository that uses the GitHub Copilot coding agent. Your company restr...
- Q28. Hotspot Question You have a GitHub repository that contains the following custom agent fil...
- Q29. Case Study 2 Existing Environment GitHub Environment The GitHub environment contains the f...
- Q30. Hotspot Question You have the following agent logs. (Exhibit) For each of the following st...
