| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The goal of this lab is to provide hands on experience configuring a Polaris workflow in GitHub and viewing the results. As part of the lab, we will:
This repository contains everything you need to complete the lab except for the two prerequisites listed below.
capture:
build:
clean-command: mvn -B clean
build-command: mvn -B -DskipTests package
analyze:
checkers:
webapp-security:
enabled: true
# example workflow for Polaris scans using the Synopsys Action
# https://github.com/marketplace/actions/synopsys-action
name: polaris
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/synopsys-action@v1.9.0
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
You have now configured a Polaris workflow in GitHub and demonstrated all the current post-scan CI features. 👏 🏆
| Back | FazBrowse Home | New Git URL |