File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 1- # Edit
1+ ---
2+ # This workflow integrates ShiftLeft NG SAST with GitHub
3+ # Visit https://docs.shiftleft.io for help
24name : Scan Action with ShiftLeft
35
46on :
57 workflow_dispatch :
6- pull_request :
7- push :
8- branches :
9- - main
10- - master
118
129jobs :
1310 NextGen-Static-Analysis :
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
You can’t perform that action at this time.
0 commit comments