Skip to content

Commit 2425063

Browse files
author
ShiftLeft
committed
adding ShiftLeft action workflow config
1 parent 6ea30ac commit 2425063

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/shiftleft.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
# This workflow integrates qwiet.ai preZero with GitHub
3+
# Visit https://docs.shiftleft.io for help
4+
name: qwiet.ai
5+
6+
on:
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
NextGen-Static-Analysis:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Download ShiftLeft CLI
16+
run: |
17+
curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
18+
19+
- name: preZero Static Analysis
20+
run: |
21+
pip install -r requirements.txt
22+
23+
${GITHUB_WORKSPACE}/sl --version
24+
${GITHUB_WORKSPACE}/sl analyze --strict --wait \
25+
--app shiftleft-python-demo \
26+
--tag branch=${{ github.head_ref }} \
27+
--pythonsrc $(pwd)
28+
env:
29+
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
30+
SHIFTLEFT_API_HOST: www.shiftleft.io
31+
SHIFTLEFT_GRPC_TELEMETRY_HOST: telemetry.shiftleft.io:443
32+
SHIFTLEFT_GRPC_API_HOST: api.shiftleft.io:443
33+
34+
# Build-Rules:
35+
# runs-on: ubuntu-latest
36+
# permissions: write-all
37+
# needs: NextGen-Static-Analysis
38+
# steps:
39+
# - uses: actions/checkout@v3
40+
# - name: Download ShiftLeft CLI
41+
# run: |
42+
# curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl
43+
# - name: Validate Build Rules
44+
# run: |
45+
# ${GITHUB_WORKSPACE}/sl check-analysis --app shiftleft-python-demo \
46+
# --github-pr-number=${{github.event.number}} \
47+
# --github-pr-user=${{ github.repository_owner }} \
48+
# --github-pr-repo=${{ github.event.repository.name }} \
49+
# --github-token=${{ secrets.GITHUB_TOKEN }}
50+
# env:
51+
# # SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
52+
#
53+
# SHIFTLEFT_API_HOST: www.shiftleft.io
54+
# SHIFTLEFT_GRPC_TELEMETRY_HOST: telemetry.shiftleft.io:443
55+
# SHIFTLEFT_GRPC_API_HOST: api.shiftleft.io:443
56+
#
57+
58+

0 commit comments

Comments
 (0)