Skip to content

Commit b34e282

Browse files
Merge pull request #45 from shiftleft-chuck/shiftleft-chuck-patch-22
Update shiftleft.yml
2 parents 0b983a0 + 8ddafca commit b34e282

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/shiftleft.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
# Edit
1+
---
2+
# This workflow integrates ShiftLeft NG SAST with GitHub
3+
# Visit https://docs.shiftleft.io for help
24
name: Scan Action with ShiftLeft
35

46
on:
57
workflow_dispatch:
6-
pull_request:
7-
push:
8-
branches:
9-
- main
10-
- master
118

129
jobs:
1310
NextGen-Static-Analysis:
@@ -27,13 +24,9 @@ jobs:
2724
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
2825
id: extract_branch
2926
- name: NextGen Static Analysis
30-
run: |
31-
${GITHUB_WORKSPACE}/sl analyze --wait --app "shiftleft-js-demo" \
32-
--tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} \
33-
--js --cpg .
27+
run: ${GITHUB_WORKSPACE}/sl analyze --wait --oss-recursive --app shiftleft-js-demo --tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --js --cpg .
3428
env:
3529
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
36-
- name: Validate Build Rules
3730
Build-Rules:
3831
runs-on: ubuntu-latest
3932
needs: NextGen-Static-Analysis

0 commit comments

Comments
 (0)