Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Commit 522b435

Browse files
authored
Create ossar-analysis.yml
1 parent 9f6b419 commit 522b435

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ossar-analysis.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow integrates a collection of open source static analysis tools
2+
# with GitHub code scanning. For documentation, or to provide feedback, visit
3+
# https://github.com/github/ossar-action
4+
name: OSSAR
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '0 4 * * MON'
10+
11+
jobs:
12+
OSSAR-Scan:
13+
# OSSAR runs on windows-latest.
14+
# ubuntu-latest and macos-latest support coming soon
15+
runs-on: windows-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
# Ensure a compatible version of dotnet is installed.
22+
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
23+
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
24+
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
25+
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
26+
# - name: Install .NET
27+
# uses: actions/setup-dotnet@v1
28+
# with:
29+
# dotnet-version: '3.1.x'
30+
31+
# Run open source static analysis tools
32+
- name: Run OSSAR
33+
uses: github/ossar-action@v1
34+
id: ossar
35+
36+
# Upload results to the Security tab
37+
- name: Upload OSSAR results
38+
uses: github/codeql-action/upload-sarif@v1
39+
with:
40+
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

0 commit comments

Comments
 (0)