Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
# This workflow integrates ShiftLeft NG SAST with GitHub
# Visit https://docs.shiftleft.io for help
name: NG SAST Scan - ShiftLeft
name: ShiftLeft

on:
# Trigger the workflow on push to update the baseline scan
# or pull request going to main
# Trigger the workflow on push or pull request,
# but only for the main branch
workflow_dispatch:
push:
branches:
- main
branches: [ main ]
pull_request:
branches:
- main
branches: [ main ]

jobs:
NextGen-Static-Analysis:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# Lets check the previous analysis for this branch to our baseline on Main,
# since we specify a 'branch' we don't have to specify a '--source'
run: |
${GITHUB_WORKSPACE}/sl check-analysis --app shiftleft-java-demo \
${GITHUB_WORKSPACE}/sl check-analysis --app shiftleft-java-demo --v2 \
--branch "${{ github.head_ref || steps.extract_branch.outputs.branch }}" \
--report \
--github-pr-number=${{ github.event.number }} \
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/shiftleft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
source:
branch: master
scan: previous
build_rules:
- id: build-rule-identifier
finding_types:
- vuln
- oss_vuln
severity:
- moderate
- critical
type:
- SQL Injection
- Sensitive Data Leak
owasp_category:
- a1-injection
threshold: 0
- id: oss-vuln
options:
reachable: true
num_findings: 10