Qwiet New POC #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This workflow integrates ShiftLeft with GitHub | |
# Visit https://docs.shiftleft.io for help | |
name: Qwiet New POC | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
NextGen-Static-Analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Download ShiftLeft cli | |
run: | | |
curl https://cdn.shiftleft.io/download/sl > ${GITHUB_WORKSPACE}/sl && chmod a+rx ${GITHUB_WORKSPACE}/sl | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Build and Analyze | |
run: | | |
${GITHUB_WORKSPACE}/sl analyze --app $(basename $(pwd)) --tag branch=${{ github.head_ref }} . | |
env: | |
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN_POC }} |