Skip to content

Can we get logs for two instances of MSDO in the same workflow #11

Can we get logs for two instances of MSDO in the same workflow

Can we get logs for two instances of MSDO in the same workflow #11

Workflow file for this run

# test-workflow
# docs are in the repo
name: chrisnielsen test with new CLI
on: push
env:
GDN_DEBUG_DROP: 'true'
jobs:
sample:
name: Microsoft Security DevOps
# MSDOruns on windows-latest.
# ubuntu-latest and macos-latest supporting coming soon
runs-on: self-hosted
steps:
# Checkout your code repository to scan
- uses: actions/checkout@v3
# Ensure a compatible version of dotnet is installed.
# The [Microsoft Security DevOps CLI](https://aka.ms/msdodocs) is built with dotnet v3.1.201.
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
# - uses: actions/setup-dotnet@v1
# with:
# dotnet-version: '3.1.x'
#- name: 'Docker stuff'
# uses: docker/build-push-action@v4
# with:
# context: ./samples
# push: false
# tags: contosofakeimage
# Run open source static analysis tools
- name: Run Microsoft Security DevOps Analysis
uses: chrisnielsen-MS/security-devops-action@main
id: msdo
with:
tools: 'credscan'
# Upload debug drop file as a workflow artifact
- name: Upload alerts file as a workflow artifact
uses: actions/upload-artifact@v3
with:
name: debugDrop
path: ${{ steps.msdo.outputs.debugDrop }}
- name: Run Microsoft Security DevOps Analysis
uses: chrisnielsen-MS/security-devops-action@main
id: msdo2
with:
tools: 'eslint'
#env:
# trivy_target: "contosofakeimage"
# - name: Run MSDO
# uses: davidknise/security-devops-action@main
# id: msdolocal
# Upload results to the Security tab
- name: Upload results to Security tab
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
- name: Upload alerts file as a workflow artifact
uses: actions/upload-artifact@v3
with:
name: debugDrop2
path: ${{ steps.msdo2.outputs.debugDrop }}