Skip to content

Commit 3d32abc

Browse files
Update main.yml
1 parent b064c33 commit 3d32abc

1 file changed

Lines changed: 32 additions & 24 deletions

File tree

.github/workflows/main.yml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,36 @@ jobs:
1515
NextGen-Static-Analysis:
1616
runs-on: ubuntu-20.04
1717
steps:
18-
- uses: actions/checkout@v2
19-
- name: Download Qwiet CLI
20-
run: |
21-
curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
22-
- name: Extract branch name
23-
shell: bash
24-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
25-
id: extract_branch
26-
- name: NextGen Static Analysis
27-
run: ${GITHUB_WORKSPACE}/sl analyze --wait --app shiftleft-python-examplewithteam branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --python --cpg .
28-
env:
29-
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
30-
Build-Rules:
31-
runs-on: ubuntu-latest
32-
needs: NextGen-Static-Analysis
33-
steps:
34-
- uses: actions/checkout@v2
35-
- name: Download ShiftLeft CLI
36-
run: |
37-
curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
38-
- name: Validate Build Rules
39-
run: ${GITHUB_WORKSPACE}/sl check-analysis --app shiftleft-python-examplewithteam --branch "${{ github.head_ref || steps.extract_branch.outputs.branch }}" --report --github-pr-number=${{github.event.number}} --github-pr-user=${{ github.repository_owner }} --github-pr-repo=${{ github.event.repository.name }} --github-token=${{ secrets.GITHUB_TOKEN }}
40-
env:
41-
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
18+
- uses: actions/checkout@v4
19+
20+
- uses: elangosenthilnathan/QwietTemplate@main
21+
with:
22+
shiftleft-access-token: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
23+
verbose: true
24+
strict: true
25+
wait: true
26+
27+
# - name: Download Qwiet CLI
28+
# run: |
29+
# curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
30+
# - name: Extract branch name
31+
# shell: bash
32+
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
33+
# id: extract_branch
34+
# - name: NextGen Static Analysis
35+
# run: ${GITHUB_WORKSPACE}/sl analyze --wait --app shiftleft-python-examplewithteam branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --python --cpg .
36+
# env:
37+
# SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
38+
# Build-Rules:
39+
# runs-on: ubuntu-latest
40+
# needs: NextGen-Static-Analysis
41+
# steps:
42+
# - uses: actions/checkout@v2
43+
# - name: Download ShiftLeft CLI
44+
# run: |
45+
# curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
46+
# - name: Validate Build Rules
47+
# run: ${GITHUB_WORKSPACE}/sl check-analysis --app shiftleft-python-examplewithteam --branch "${{ github.head_ref || steps.extract_branch.outputs.branch }}" --report --github-pr-number=${{github.event.number}} --github-pr-user=${{ github.repository_owner }} --github-pr-repo=${{ github.event.repository.name }} --github-token=${{ secrets.GITHUB_TOKEN }}
48+
# env:
49+
# SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
4250

0 commit comments

Comments
 (0)