Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update qwiet-prezero-workflow.yml #6

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/qwiet-prezero-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,34 @@ jobs:
run: mvn clean package

- name: NextGen Static Analysis
run: ${GITHUB_WORKSPACE}/sl analyze --app qwiet-java-demp-gh --tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }}
run: ${GITHUB_WORKSPACE}/sl analyze --app qwiet-java-demp-gh --tag branch=${{ github.head_ref || steps.extract_branch.outputs.branch }} --verbose --strict --wait

env:
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}
SHIFTLEFT_API_HOST: www.shiftleft.io
SHIFTLEFT_GRPC_TELEMETRY_HOST: telemetry.shiftleft.io:443
SHIFTLEFT_GRPC_API_HOST: api.shiftleft.io:443

- name: Download export.py and requirements.txt
run: |
curl -O https://raw.githubusercontent.com/ShiftLeftSecurity/field-integrations/master/shiftleft-utils/export.py
curl -O https://raw.githubusercontent.com/ShiftLeftSecurity/field-integrations/master/shiftleft-utils/config.py
curl -O https://raw.githubusercontent.com/ShiftLeftSecurity/field-integrations/master/shiftleft-utils/common.py
curl -O https://raw.githubusercontent.com/ShiftLeftSecurity/field-integrations/master/shiftleft-utils/requirements.txt

- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt

- name: Run export.py and generate SARIF report
run: |
APP_NAME=${{ github.event.repository.name }}
python3 export.py -f sarif -a $APP_NAME
env:
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}

- name: Upload SARIF file to GitHub Security Tab
uses: github/codeql-action/upload-sarif@v3 # Updated to v3
with:
sarif_file: ./ngsast-report-${{ github.event.repository.name }}.sarif # Correct dynamic path for SARIF output
Loading