@@ -15,35 +15,34 @@ jobs:
1515
1616 steps :
1717 # Checkout your code repository to scan
18- - name : Checkout repository
19- uses : actions/checkout@v2.3.4
20- with :
21- # We must fetch at least the immediate parents so that if this is
22- # a pull request then we can checkout the head.
23- fetch-depth : 2
18+ - name : Checkout repository
19+ uses : actions/checkout@v2.3.4
20+ with :
21+ # We must fetch at least the immediate parents so that if this is
22+ # a pull request then we can checkout the head.
23+ fetch-depth : 2
2424
25- # If this run was triggered by a pull request event, then checkout
26- # the head of the pull request instead of the merge commit.
27- - run : git checkout HEAD^2
28- if : ${{ github.event_name == 'pull_request' }}
29-
30- # Ensure a compatible version of dotnet is installed.
31- # The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
32- # A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
33- # GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
34- # For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
35- # - name: Install .NET
36- # uses: actions/setup-dotnet@v1
37- # with:
38- # dotnet-version: '3.1.x'
25+ # If this run was triggered by a pull request event, then checkout
26+ # the head of the pull request instead of the merge commit.
27+ - run : git checkout HEAD^2
28+ if : ${{ github.event_name == 'pull_request' }}
3929
30+ # Ensure a compatible version of dotnet is installed.
31+ # The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
32+ # A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
33+ # GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
34+ # For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
35+ # - name: Install .NET
36+ # uses: actions/setup-dotnet@v1
37+ # with:
38+ # dotnet-version: '3.1.x'
4039 # Run open source static analysis tools
41- - name : Run OSSAR
42- uses : github/ossar-action@v1
43- id : ossar
40+ - name : Run OSSAR
41+ uses : github/ossar-action@v1
42+ id : ossar
4443
45- # Upload results to the Security tab
46- - name : Upload OSSAR results
47- uses : github/codeql-action/upload-sarif@v1
48- with :
49- sarif_file : ${{ steps.ossar.outputs.sarifFile }}
44+ # Upload results to the Security tab
45+ - name : Upload OSSAR results
46+ uses : github/codeql-action/upload-sarif@v1
47+ with :
48+ sarif_file : ${{ steps.ossar.outputs.sarifFile }}
0 commit comments