Configure the Microsoft Security DevOps GitHub action

Completed

Microsoft Security DevOps is a command line application that integrates static analysis tools into the development lifecycle. Security DevOps installs, configures, and runs the latest versions of static analysis tools such as, Security Development Lifecycle (SDL), security and compliance tools. Security DevOps is data-driven with portable configurations that enable deterministic execution across multiple environments.

Name Language License
AntiMalware AntiMalware protection in Windows from Microsoft Defender for Endpoint, that scans for malware and breaks the build if malware has been found. This tool scans by default on windows-latest agent. Not Open Source
Bandit Python Apache License 2.0
BinSkim Binary--Windows, ELF MIT License
ESlint JavaScript MIT License
Template Analyzer ARM Template, Bicep MIT License
Terrascan Terraform (HCL2), Kubernetes (JSON/YAML), Helm v3, Kustomize, Dockerfiles, CloudFormation Apache License 2.0
Trivy container images, Infrastructure as Code (IaC) Apache License 2.0

Prerequisites

Configure the Microsoft Security DevOps GitHub action

To setup GitHub action:

  1. Sign in to GitHub.

  2. Select a repository you want to configure the GitHub action to.

  3. Select Actions.

    Screenshot showing how to Configure the Microsoft Security DevOps GitHub action.

  4. Select New workflow.

  5. On the Get started with GitHub Actions page, select set-up a workflow yourself.

    Screenshot showing how to Get started with GitHub Actions.

  6. In the text box, enter a name for your workflow file. For example, msdevopssec.yml.

    Screenshot showing how to enter a name for your workflow file.

  7. Copy and paste the following sample action workflow into the Edit new file tab.

  8. Select Start commit.

    Screenshot showing how to start the commit process for your workflows.

  9. Select Commit new file.

    Screenshot showing how to Commit a new file.

  10. Select Actions and verify the new action is running.

    Screenshot showing how to verify the new action is running.

View Scan Results

To view your scan results:

  1. Sign in to GitHub.
  2. Navigate to Security > Code scanning alerts > Tool.
  3. From the dropdown menu, select Filter by tool.

Code scanning findings will be filtered by specific MSDO tools in GitHub. These code scanning results are also pulled into Defender for Cloud recommendations.