Skip to content

Commit 25e5f40

Browse files
authored
Update shiftleft.yml
1 parent e7ab139 commit 25e5f40

File tree

1 file changed

+3
-32
lines changed

1 file changed

+3
-32
lines changed

.github/workflows/shiftleft.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,6 @@ jobs:
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+

0 commit comments

Comments
 (0)