-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.29 KB
/
main.yml
File metadata and controls
40 lines (40 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# example workflow for Polaris scans using the Black Duck Security Scan Action
# https://github.com/marketplace/actions/black-duck-security-scan
name: polaris-ss-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: blackduck-inc/black-duck-security-scan@v2.0.0
with:
polaris_server_url: ${{ vars.POLARIS_SERVERURL }}
polaris_access_token: ${{ secrets.POLARIS_ACCESSTOKEN }}
polaris_assessment_types: 'SAST'
polaris_application_name: 1swright
polaris_prComment_enabled: 'true'
polaris_reports_sarif_create: 'true'
polaris_upload_sarif_report: 'true'
github_token: ${{ secrets.GITHUB_TOKEN }}
# include_diagnostics: true
# - name: Save Logs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: bridge-logs
# path: ${{ github.workspace }}/.bridge
# include-hidden-files: true