-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 951 Bytes
/
push.yml
File metadata and controls
40 lines (32 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
push:
workflow_dispatch:
schedule:
- cron: '12 9 * * 4'
permissions:
security-events: write
jobs:
SCS:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- if: matrix.os != 'windows-latest'
uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v3
- name: Set up projects
uses: security-code-scan/security-code-scan-add-action@main
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: Build
run: |
dotnet restore
dotnet build
- name: Convert sarif for uploading to GitHub
uses: security-code-scan/security-code-scan-results-action@main
- name: Upload sarif
uses: github/codeql-action/upload-sarif@v2