Can we get logs for two instances of MSDO in the same workflow #11
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
name: MSDO Sample Workflow | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
security-events: write | |
jobs: | |
sample: | |
name: MSDO on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-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@v1 | |
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 }} |