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?
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
copilotGithubTokentoCOPILOT_GITHUB_TOKENin 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
advisorytoenforcebefore 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.