-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec76c4d
commit 729a2d1
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |