Skip to content

Commit

Permalink
Update MSDefenderDevOpsSec.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyarbij authored Aug 20, 2023
1 parent 342cbd1 commit e92c47d
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/MSDefenderDevOpsSec.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
name: MSDO windows-latest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
sample:
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

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

steps:
- uses: actions/checkout@v3
# MSDO runs on windows-latest and ubuntu-latest.
# macos-latest supporting coming soon
runs-on: windows-latest

- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
5.0.x
6.0.x
steps:
- uses: actions/checkout@v3

# Run analyzers
- name: Run Microsoft Security DevOps Analysis
uses: microsoft/security-devops-action@preview
id: msdo
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
5.0.x
6.0.x
# 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 }}
# 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 }}

0 comments on commit e92c47d

Please sign in to comment.