Skip to content

Commit

Permalink
Create Microsoft_Defender_for_DevOps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HoussemDellai authored Jul 25, 2023
1 parent 4a7fe1f commit 251c2ef
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Microsoft_Defender_for_DevOps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Microsoft Defender for DevOps
on:
push:
branches:
- dev
workflow_dispatch:

jobs:
sample:
name: Microsoft Security DevOps Analysis

# MSDO runs on windows-latest.
# ubuntu-latest and macos-latest supporting coming soon
runs-on: windows-latest

steps:

# Checkout your code repository to scan
- uses: actions/checkout@v3

# Run analyzers
- name: Run Microsoft Security DevOps Analysis
uses: microsoft/security-devops-action@preview
id: msdo

# Upload alerts to the Security tab
- name: Upload alerts to Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.msdo.outputs.sarifFile }}

# Upload alerts file as a workflow artifact
- name: Upload alerts file as a workflow artifact
uses: actions/upload-artifact@v3
with:
name: alerts
path: ${{ steps.msdo.outputs.sarifFile }}

0 comments on commit 251c2ef

Please sign in to comment.