File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ # pull request action verification
2+
3+ name: MSDO ubuntu-latest
4+ on:
5+ # Triggers the workflow on push or pull request events but only for the main branch
6+ pull_request:
7+ branches: ["main"]
8+
9+ jobs:
10+ sample:
11+ name: Microsoft Security DevOps Analysis
12+
13+ # MSDO runs on ubuntu-latest
14+ runs-on: ubuntu-latest
15+
16+ steps:
17+
18+ # Checkout your code repository to scan
19+ - uses: actions/checkout@v2
20+
21+ # Install dotnet, used by MSDO
22+ - uses: actions/setup-dotnet@v1
23+ with:
24+ dotnet-version: |
25+ 3.1.x
26+ 5.0.x
27+ 6.0.x
28+
29+ # Run analyzers
30+ - name: Run Microsoft Security DevOps Analysis
31+ uses: microsoft/security-devops-action@preview
32+ id: msdo
33+
34+ # Upload alerts to the Security tab
35+ - name: Upload alerts to Security tab
36+ uses: github/codeql-action/upload-sarif@v1
37+ with:
38+ sarif_file: ${{ steps.msdo.outputs.sarifFile }}
39+
40+ # Upload alerts file as a workflow artifact
41+ - name: Upload alerts file as a workflow artifact
42+ uses: actions/upload-artifact@v3
43+ with:
44+ name: alerts
45+ path: ${{ steps.msdo.outputs.sarifFile }}
You can’t perform that action at this time.
0 commit comments