-
-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (36 loc) · 959 Bytes
/
Copy pathshiftleft-analysis.yml
File metadata and controls
42 lines (36 loc) · 959 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
41
42
name: SL Scan
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
schedule:
- cron: '39 4 * * 6'
jobs:
Scan-Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.100-rc.1.21463.6
- name: Manual build
working-directory: ./
run: |
dotnet build -c Release
- name: Perform Scan
uses: ShiftLeftSecurity/scan-action@master
env:
WORKSPACE: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCAN_AUTO_BUILD: true
with:
output: reports
# Scan auto-detects the languages in your project. To override uncomment the below variable and set the type
# type: credscan,java
# type: python
- name: Upload report
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: reports