Skip to content

Commit 97f9b34

Browse files
authored
Update qwiet-prezero-workflow.yml
1 parent 251b861 commit 97f9b34

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/qwiet-prezero-workflow.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
# Visit https://docs.shiftleft.io for help
33
name: Qwiet
44

5+
6+
permissions:
7+
actions: read
8+
contents: read
9+
security-events: write
10+
511
on:
612
pull_request:
713
workflow_dispatch:
@@ -22,11 +28,7 @@ jobs:
2228
ngsast-build:
2329
runs-on: ubuntu-latest
2430
steps:
25-
- uses: actions/checkout@v2
26-
27-
- name: Download the Qwiet CLI and set permissions
28-
run: |
29-
curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
31+
- uses: actions/checkout@v4
3032

3133
# Qwiet requires Java 1.8
3234
- name: Set up Java
@@ -37,14 +39,13 @@ jobs:
3739
- name: Package with Maven
3840
run: mvn clean package
3941

40-
- name: NextGen Static Analysis
41-
run: ${GITHUB_WORKSPACE}/sl analyze --app ${{ github.event.repository.name }} --tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --verbose --strict --wait
42-
43-
env:
44-
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
45-
SHIFTLEFT_API_HOST: www.shiftleft.io
46-
SHIFTLEFT_GRPC_TELEMETRY_HOST: telemetry.shiftleft.io:443
47-
SHIFTLEFT_GRPC_API_HOST: api.shiftleft.io:443
42+
- uses: elangosenthilnathan/QwietTemplate@main
43+
with:
44+
shiftleft-access-token: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
45+
verbose: true
46+
strict: false
47+
wait: true
48+
importGitHub: false
4849

4950
# - name: Download export.py and requirements.txt
5051
# run: |

0 commit comments

Comments
 (0)