Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Design and implement a strategy for managing sensitive information during deployment, including Azure Pipelines secure files and GitHub secrets

A worked example

Single answer

An Azure Pipelines deployment includes a GitHub Copilot CLI security review. Azure Repos checkout and the application build succeed. The review task then reports No authentication information found, before generating a report.

A valid GitHub token is already stored in the secret pipeline variable copilotGithubToken. The review task has no environment mapping for that variable, and no other Copilot authentication is configured. The pipeline uses advisory mode.

Which change addresses the authentication failure?

Choose one answer
Why

Successful checkout confirms that repository access is working; Copilot uses separate authentication. Map the stored token into the review task as COPILOT_GITHUB_TOKEN. Advisory policy and optional scanning do not resolve missing credentials.

  • Correct: Map copilotGithubToken to COPILOT_GITHUB_TOKEN in the environment of the Copilot review task. The source explicitly maps the secret pipeline variable to COPILOT_GITHUB_TOKEN on the review step. This makes the existing GitHub token available to the component that needs it.
  • Not correct: Grant the pipeline's Azure DevOps build identity Read permission on the checked-out repository. The source separates the Azure Repos build identity from Copilot authentication. Repository Read permission addresses checkout access, not delivery of the GitHub token to the review task.
  • Not correct: Enable the optional GitHub Advanced Security scanning tasks in the next pipeline run. The source describes the optional deterministic scans as separate from the Copilot review. Enabling those tasks does not establish the missing mapping for Copilot's GitHub credential.
  • Not correct: Change the pipeline's selected security review mode from advisory to enforce before rerunning it. The source uses enforce mode to apply a severity gate after a valid report is published. Changing that policy does not supply the missing authentication environment variable.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free