Skip to content

Commit

Permalink
add security scanning workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 committed Oct 12, 2023
1 parent ec76c4d commit 729a2d1
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/blackduck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: bd-sig-action
on:
push:
branches: [ main, master, develop, stage, release ]
pull_request:
branches: [ main, master, develop, stage, release ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Black Duck Full Scan
if: ${{ github.event_name != 'pull_request' }}
uses: synopsys-sig/synopsys-action@v1.5.0
### Use below configuration to set specific detect environment variables
env:
DETECT_PROJECT_NAME: ${{ github.event.repository.name }}
with:
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
blackduck_scan_full: true
### Accepts Multiple Values
blackduck_scan_failure_severities: 'BLOCKER,CRITICAL'
### Uncomment below configuration to enable automatic fix pull request creation if vulnerabilities are reported
# blackduck_fixpr_enabled: true
# blackduck_fixpr_maxCount: 5
# blackduck_fixpr_filter_severities: 'CRITICAL,HIGH'
# blackduck_fixpr_useUpgradeGuidance: 'SHORT_TERM,LONG_TERM'
# github_token: ${{ secrets.GITHUB_TOKEN }} # Mandatory when blackduck_fixpr_enabled is set to 'true'
### Uncomment below configuration if Synopsys Bridge diagnostic files needs to be uploaded
# include_diagnostics: true
- name: Black Duck PR Scan
if: ${{ github.event_name == 'pull_request' }}
uses: synopsys-sig/synopsys-action@v1.5.0
### Use below configuration to set specific detect environment variables
env:
DETECT_PROJECT_NAME: ${{ github.event.repository.name }}
with:
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
blackduck_scan_full: false
### Below configuration is used to enable automatic pull request comment based on Black Duck scan result
blackduck_automation_prcomment: true
github_token: ${{ secrets.GITHUB_TOKEN }} # Mandatory when blackduck_automation_prcomment is set to 'true'
### Uncomment below configuration if Synopsys Bridge diagnostic files needs to be uploaded
# include_diagnostics: true

0 comments on commit 729a2d1

Please sign in to comment.