Skip to content

Commit

Permalink
Set GHA guidelines
Browse files Browse the repository at this point in the history
Test with ShiftLeft
  • Loading branch information
vmcj committed Nov 8, 2021
1 parent 8737009 commit 5aec3ff
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/shiftleft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: SL Scan

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '24 23 * * 6'

jobs:
Scan-Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Perform Scan
uses: ShiftLeftSecurity/scan-action@master
env:
WORKSPACE: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCAN_AUTO_BUILD: true
SCAN_ANNOTATE_PR: 0
with:
output: reports
type: python,bash

- name: Upload report
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: reports
9 changes: 9 additions & 0 deletions .sastscanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"SCAN_DEBUG_MODE": "debug",
"SCAN_ANNOTATE_PR": 0,
"build_break_rules": {
"default": {"max_critical": 0, "max_high": 0, "max_medium": 0, "max_low": 0},
"Python Source Analyzer": {"max_critical": 0, "max_high": 0, "max_medium": 0, "max_low": 0},
"Shell Script Analysis": {"max_low": 7}
}
}

0 comments on commit 5aec3ff

Please sign in to comment.