Skip to content

Commit 5aec3ff

Browse files
committed
Set GHA guidelines
Test with ShiftLeft
1 parent 8737009 commit 5aec3ff

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/shiftleft.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: SL Scan
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
schedule:
10+
- cron: '24 23 * * 6'
11+
12+
jobs:
13+
Scan-Build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Perform Scan
19+
uses: ShiftLeftSecurity/scan-action@master
20+
env:
21+
WORKSPACE: ""
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
SCAN_AUTO_BUILD: true
24+
SCAN_ANNOTATE_PR: 0
25+
with:
26+
output: reports
27+
type: python,bash
28+
29+
- name: Upload report
30+
uses: github/codeql-action/upload-sarif@v1
31+
with:
32+
sarif_file: reports

.sastscanrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"SCAN_DEBUG_MODE": "debug",
3+
"SCAN_ANNOTATE_PR": 0,
4+
"build_break_rules": {
5+
"default": {"max_critical": 0, "max_high": 0, "max_medium": 0, "max_low": 0},
6+
"Python Source Analyzer": {"max_critical": 0, "max_high": 0, "max_medium": 0, "max_low": 0},
7+
"Shell Script Analysis": {"max_low": 7}
8+
}
9+
}

0 commit comments

Comments
 (0)