Hi, I'm Nicholas 👋

I'm a Senior Platform Engineer

Buy Me A Coffee

Github Advanced Security for Azure DevOps

Date published:

This post will look at integrating GitHub Advance Security with Azure DevOps. As more and more organisations move to the cloud, security has become a top concern for many developers. That’s why Github has introduced Advanced Security for Azure DevOps. This post is written on behalf of Azure Back to School 2023.

This new feature allows you to integrate Github’s security features into your Azure DevOps workflow, making it easier than ever to secure your applications.

Github Advanced Security for Azure DevOps includes a range of features, including:

Enable Advanced Security for Azure DevOps

Enable the features in your Azure DevOps organisation repository to get started with Github Advanced Security for Azure DevOps. From there, you can use it to scan your code, monitor your dependencies, and stay on top of security advisories.

Scanning Azure DevOps Pipeline with Github Advanced Security

You’ll need to add a new step to your pipeline to scan your Azure DevOps pipeline with Github Advanced Security. This step will run the GitHub Advanced Security scanner on your code and provide you with a report of any vulnerabilities it finds. I will show you an example of how to use it in your pipeline.

You can insert the AdvancedSecurity task from the classic editor as well.

Results

Once you’ve added the task to your pipeline, you can run it and view the results in the Github Advanced Security dashboard. The dashboard will show you a list of all the vulnerabilities, including Dependencies, code scanning, and secret scanning. Below are dependencies vulnerabilities.

To resolve the vulnerabilities, you can fix them manually or automatically. The fixer will create a pull request with the fixes and assign it to you for review. An example of the vulnerability is shown below, with instructions on how to fix it.

For more information you can view the video below

Conclusion

Overall, Github Advanced Security for Azure DevOps is a powerful tool that can help developers strengthen their security posture and protect their applications from threats. I have shown you how to enable the feature and scan your code to resolve vulnerabilities. In this post, I have demonstrated how easily you can integrate Github Advanced Security with Azure DevOps to detect Dependencies, code scanning, and secret scanning vulnerabilities. I only show the Dependencies issue, but the code and secret are similar.

References