Skip to content

Commit b353c0b

Browse files
authored
Create qwiet-prezero-workflow.yml
1 parent f4feb7e commit b353c0b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow integrates Qwiet preZero with GitHub
2+
# Visit https://docs.shiftleft.io for help
3+
name: Qwiet
4+
5+
on:
6+
pull_request:
7+
workflow_dispatch:
8+
push:
9+
# We recommend triggering a scan when merging to your default branch
10+
# as a best practice, especially if you'd like to compare the results
11+
# of two scans (e.g., a feature branch against the default branch)
12+
branches:
13+
- main
14+
- master
15+
16+
jobs:
17+
ngsast-build:
18+
runs-on: ubuntu-20.04
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Download the Qwiet CLI and set permissions
23+
run: |
24+
curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
25+
26+
# Qwiet requires Java 1.8
27+
- name: Set up Java
28+
uses: actions/[email protected]
29+
with:
30+
java-version: 1.8
31+
32+
- name: NextGen Static Analysis
33+
run: ${GITHUB_WORKSPACE}/sl analyze --app shiftleft-python-demo-GH --tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --python .
34+
env:
35+
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)