Debian Codegraph @

pirates/.github/workflows/ossar-analysis.yml

raw
1 # This workflow uses actions that are not certified by GitHub.
2 # They are provided by a third-party and are governed by
3 # separate terms of service, privacy policy, and support
4 # documentation.
5
6 # This workflow integrates a collection of open source static analysis tools
7 # with GitHub code scanning. For documentation, or to provide feedback, visit
8 # https://github.com/github/ossar-action
9 name: OSSAR
10
11 on:
12 push:
13 branches: [ main ]
14 pull_request:
15 # The branches below must be a subset of the branches above
16 branches: [ main ]
17 schedule:
18 - cron: '34 14 * * 4'
19
20 jobs:
21 OSSAR-Scan:
22 # OSSAR runs on windows-latest.
23 # ubuntu-latest and macos-latest support coming soon
24 runs-on: windows-latest
25
26 steps:
27 - name: Checkout repository
28 uses: actions/checkout@v2
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'
39
40 # Run open source static analysis tools
41 - name: Run OSSAR
42 uses: github/ossar-action@v1
43 id: ossar
44
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 }}