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

CertStreak
Menu

Design and implement integration between GitHub repositories and Azure Pipelines

A worked example

Single answer

Fabrikam has an Azure DevOps organization created in 2021. Its projects contain many pipelines that build public open-source GitHub repositories, and external contributors submit pull requests from forks. All relevant projects and pipelines already allow fork PR builds. The organization-level Limit building pull requests from forked GitHub repositories control is off. The security team states these requirements:

  • Pull requests from forks must continue to be built by Azure Pipelines.
  • A fork build must start only after a PR comment.
  • No pipeline may make secrets available to fork builds.
  • The comment and secret restrictions must be enforced centrally for all pipelines in the organization.

What should you configure?

Choose one answer
Why

Configure the organization-level control to Securely build pull requests from forked repositories to enforce the comment requirement and prevent secrets from being provided to fork builds. The projects and pipelines already allow these builds, so they can continue under the new restrictions. This organization setting does not force projects to enable fork builds; projects can still disable them.

  • Correct: Set the organization control to Securely build pull requests from forked repositories. At organization scope, this setting requires fork PR builds to wait for a PR comment and prevents pipelines from exposing secrets to those builds. It permits the already-enabled fork builds to continue under these restrictions.
  • Not correct: In each pipeline, enable Build pull requests from forks of this repository. This per-pipeline check box only turns fork PR builds on; it does not require a PR comment and is not a central control, so a pipeline owner could still change other fork settings.
  • Not correct: In each pipeline, enable Make secrets available to builds of forks. This check box bypasses the default protection and exposes secrets such as service connection credentials to fork builds.
  • Not correct: Set the organization control to Disable building pull requests from forked repositories. This option stops fork pull requests from being built at all, so the first requirement fails.

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