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
1+ # sample-workflow-ubuntu-latest
2+ # docs are in the repo
53
4+ name : OSSAR ubuntu-latest
65on :
76 push :
8- pull_request :
7+ branches :
8+ - main
9+ - v1
910
1011jobs :
11- OSSAR-Scan :
12+ sample :
13+ name : Open Source Static Analysis Runner
14+
1215 # OSSAR runs on windows-latest.
13- # ubuntu-latest and macos-latest support coming soon
14- runs-on : windows-latest
15-
16- steps :
17- - uses : actions/checkout@v2
18- - name : Run OSSAR
19- uses : github/ossar-action@v1
20- id : ossar
21- - name : Upload results to Security tab
22- uses : github/codeql-action/upload-sarif@v1
23- with :
24- sarif_file : ${{ steps.ossar.outputs.sarifFile }}
16+ # ubuntu-latest and macos-latest supporting coming soon
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+
21+ # Checkout your code repository to scan
22+ - uses : actions/checkout@v2
23+
24+ # Ensure a compatible version of dotnet is installed.
25+ # The [Microsoft Security DevOps CLI](https://aka.ms/msdo-nuget) is built with net6.0
26+ # A version greater than or equal to net6.0 of dotnet must be installed on the agent in order to run this action.
27+ # GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
28+
29+ # For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
30+ # - uses: actions/setup-dotnet@v1
31+ # with:
32+ # dotnet-version: '6.0.x'
33+
34+ # Run open source static analysis tools
35+ - name : Run OSSAR
36+ uses : github/ossar-action@v1
37+ id : ossar
38+
39+ # Upload results to the Security tab
40+ - name : Upload results to Security tab
41+ uses : github/codeql-action/upload-sarif@v1
42+ with :
43+ sarif_file : ${{ steps.ossar.outputs.sarifFile }}
0 commit comments