From b353c0b01aa49c30d438c29b13c31d89597ec3c8 Mon Sep 17 00:00:00 2001 From: Eric Six Date: Fri, 13 Dec 2024 08:31:27 -0800 Subject: [PATCH] Create qwiet-prezero-workflow.yml --- .github/workflows/qwiet-prezero-workflow.yml | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/qwiet-prezero-workflow.yml diff --git a/.github/workflows/qwiet-prezero-workflow.yml b/.github/workflows/qwiet-prezero-workflow.yml new file mode 100644 index 00000000..fa6387dc --- /dev/null +++ b/.github/workflows/qwiet-prezero-workflow.yml @@ -0,0 +1,35 @@ +# This workflow integrates Qwiet preZero with GitHub +# Visit https://docs.shiftleft.io for help +name: Qwiet + +on: + pull_request: + workflow_dispatch: + push: + # We recommend triggering a scan when merging to your default branch + # as a best practice, especially if you'd like to compare the results + # of two scans (e.g., a feature branch against the default branch) + branches: + - main + - master + +jobs: + ngsast-build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Download the Qwiet CLI and set permissions + run: | + curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl + + # Qwiet requires Java 1.8 + - name: Set up Java + uses: actions/setup-java@v1.4.3 + with: + java-version: 1.8 + + - name: NextGen Static Analysis + run: ${GITHUB_WORKSPACE}/sl analyze --app shiftleft-python-demo-GH --tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --python . + env: + SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}