Skip to content

Update bd-snps-action.yml #1

Update bd-snps-action.yml

Update bd-snps-action.yml #1

# example workflow for Polaris scans using the Synopsys Action
# https://github.com/marketplace/actions/synopsys-action
name: polaris-snps-action
on:
push:
branches: [ main, master, develop, stage, release ]
pull_request:
branches: [ main, master, develop, stage, release ]
workflow_dispatch:
jobs:
polaris:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: microsoft
cache: maven
- name: Polaris Scan
uses: synopsys-sig/[email protected]
with:
polaris_server_url: ${{ vars.POLARIS_SERVERURL }}
polaris_access_token: ${{ secrets.POLARIS_ACCESSTOKEN }}
polaris_assessment_types: 'SAST,SCA'
polaris_application_name: chuckaude-${{ github.event.repository.name }}
# polaris_project_name: ${{ github.event.repository.name }}
polaris_prComment_enabled: 'true'
polaris_reports_sarif_create: 'true'
polaris_upload_sarif_report: 'true'
github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Save Logs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: bridge-logs
# path: ${{ github.workspace }}/.bridge