Microsoft Defender for Cloud
Architecture and deployment

Deploy GitHub Advanced Security integration with Microsoft Defender for Cloud (Sandbox project)

In brief

The guide now names the `mdc-mock-0001:mdc-ghas-integration` image, identifies the container registry authentication details to retrieve from the Azure portal, clarifies validation-query and risk-factor instructions, and adds related content.

What Defender admins need to know

Administrators have clearer steps and required values when validating the GHAS and Defender for Cloud integration.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

GitHub Advanced Security Integration with Microsoft Defender for Cloud – Sandbox Project

This guide provides setup steps for a sandbox project that helps you evaluate GitHub Advanced Security (GHAS) and Microsoft Defender for Cloud integration end to end with a simple use case.

ThisThe GHAS and Microsoft Defender for Cloud integration helps maximize Microsoft's cloud-native application security by correlating runtime risks and context with the originated code for faster AI-powered remediation.

By following this guide, you:

You can find the container registry authentication server, username, and password in the Azure portal by following these steps:

  1. Select the container registry that you want to deploy to.
  2. Under Settings, select Access keys.

Check that the image was deployed to your container registry. For the example repository, the image should be in a registry called mdc-mock-0001 with the tag mdc-ghas-integration.

Deploy the mdc-mock-0001:mdc-ghas-integration image as a running container on your cluster. One way to deploy the container image to your cluster is by connecting to the cluster and using the kubectl run command. Here's an example for Azure Kubernetes Service (AKS):

Set the cluster subscription:

Validation confirms that your environment is correctly configured to surface code to runtime recommendations and generate actionable results.

During validation, Defender verifies full code to runtime visibility.

  • Microsoft Defender for Cloud continuously monitors source code repositories for security vulnerabilities.
  • Build artifacts, such as container images, are scanned in container registries before deployment.

Test that GitHub agentless scanning picks up the repository.

Go to Cloud Security Explorer and run the validation queries described in the following list. These validation queries test whether Defender can identify artifacts produced by your pipelines and workloads. If the queries return results, it indicates that scanning and correlation are working as expected.

  • Validate that the risk factors are configured correctly on the Defender for Cloud side. Search for your container name on the Defender for Cloud inventory page, and you should see it marked as critical.

Successful validation ensures that subsequent steps, such as recommendations, campaigns, and GitHub issue generation, produce meaningful results.

Next steps

Related content