From afaf5d43dfec3dae6e0afbe7a0834c1055167c99 Mon Sep 17 00:00:00 2001 From: alberteinsteinstlab <135320282+alberteinsteinstlab@users.noreply.github.com> Date: Sun, 4 Jun 2023 17:03:05 +0200 Subject: [PATCH 1/2] Create msdo.yml Signed-off-by: alberteinsteinstlab <135320282+alberteinsteinstlab@users.noreply.github.com> --- .github/workflows/msdo.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/msdo.yml diff --git a/.github/workflows/msdo.yml b/.github/workflows/msdo.yml new file mode 100644 index 00000000..9b2f14da --- /dev/null +++ b/.github/workflows/msdo.yml @@ -0,0 +1,45 @@ +name: MSDO windows-latest +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + 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 + + # Install dotnet, used by MSDO + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 5.0.x + 6.0.x + + # 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 }} From bb1cd1bcdd3cda6fad599eb9c1d6655ef13418a0 Mon Sep 17 00:00:00 2001 From: alberteinsteinstlab <135320282+alberteinsteinstlab@users.noreply.github.com> Date: Sun, 4 Jun 2023 17:17:02 +0200 Subject: [PATCH 2/2] Delete msdo.yml MSDO actions are set in 3 already existing workflow files Signed-off-by: alberteinsteinstlab <135320282+alberteinsteinstlab@users.noreply.github.com> --- .github/workflows/msdo.yml | 45 -------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/msdo.yml diff --git a/.github/workflows/msdo.yml b/.github/workflows/msdo.yml deleted file mode 100644 index 9b2f14da..00000000 --- a/.github/workflows/msdo.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: MSDO windows-latest -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - 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 - - # Install dotnet, used by MSDO - - uses: actions/setup-dotnet@v3 - with: - dotnet-version: | - 5.0.x - 6.0.x - - # 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 }}