Skip to content

Commit

Permalink
add blackduck action
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenMe committed Oct 30, 2024
1 parent f39467f commit 4f3ddb7
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/blackduck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: SCA
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "release" ]
# trigger manually. Can be used to validate feature branches before open pull request
workflow_dispatch:
jobs:
blackduck:
name: Datalog
runs-on: ubuntu-latest
environment: Release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Run Black Duck Detec
uses: synopsys-sig/[email protected]
### Use below configuration to set specific detect environment variables
env:
DETECT_PROJECT_NAME: ${{ github.event.repository.name }}
with:
blackduck_token: ${{ secrets.BLACKDUCK_ACCESS_TOKEN }}
blackduck_url: 'https://test4toolsbd.cchaxcess.com'
# Optional parameter. By default, pushes will initiate a full "intelligent" scan and pull requests
# will initiate a rapid scan.
#blackduck_scan_full: false
# Required parameter if blackduck_automation_fixpr is enabled
github_token: ${{ secrets.GITHUB_TOKEN }}
# Optional parameter. By default, create fix pull requests if vulnerabilities are reported
# Passing false will disable fix pull request creation
blackduck_automation_fixpr: true
# Optional parameter. The values could be. ALL|NONE|BLOCKER|CRITICAL|MAJOR|MINOR|OK|TRIVIAL|UNSPECIFIED
# Single parameter
#blackduck_scan_failure_severities: '["ALL"]'
# multiple parameters
# blackduck_scan_failure_severities: "[\"BLOCKER\", \"CRITICAL\", \"TRIVIAL\"]"
# SARIF report generation and upload to GitHub Adavanced Security: Uncomment below to enable
# Create Black Duck SARIF report and upload it as artifact
#blackduck_reports_sarif_create: true
# Upload Black Duck SARIF report in GitHub Advanced Security tab
#blackduck_upload_sarif_report: true
# PULL REQUEST COMMENTS: Uncomment below to enable
#blackduck_prcomment_enabled: true

0 comments on commit 4f3ddb7

Please sign in to comment.