-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Microsoft_Defender_for_DevOps.yml
- Loading branch information
1 parent
4a7fe1f
commit 251c2ef
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |