File tree Expand file tree Collapse file tree 1 file changed +3
-32
lines changed
Expand file tree Collapse file tree 1 file changed +3
-32
lines changed Original file line number Diff line number Diff line change 2727 env :
2828 SHIFTLEFT_ACCESS_TOKEN : ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
2929
30- if :
31- ${{ hashFiles('requirements.txt') != '' }}
32- - name : Legacy Static Analysis
33- run : |
34- echo "Please update your `shiftleft-python-demo` fork!"
35- ${GITHUB_WORKSPACE}/sl analyze --strict --wait --no-cpg --app shiftleft-python-demo --tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --python $(pwd)
36- env :
37- SHIFTLEFT_ACCESS_TOKEN : ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
38-
39- if :
40- ${{ hashFiles('requirements.txt') == '' }}
41- Build-Rules :
42- runs-on : ubuntu-latest
43- needs : NextGen-Static-Analysis
44- steps :
45- - uses : actions/checkout@v2
46- - name : Download ShiftLeft CLI
47- run : |
48- curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
49- - name : Validate Build Rules
50- run : |
51- ${GITHUB_WORKSPACE}/sl check-analysis --app shiftleft-python-demo \
52- --branch "${{ github.head_ref || steps.extract_branch.outputs.branch }}" \
53- --report \
54- --github-pr-number=${{github.event.number}} \
55- --github-pr-user=${{ github.repository_owner }} \
56- --github-pr-repo=${{ github.event.repository.name }} \
57- --github-token=${{ secrets.GITHUB_TOKEN }}
58- env :
59- SHIFTLEFT_ACCESS_TOKEN : ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
60-
61-
30+
31+
32+
You can’t perform that action at this time.
0 commit comments