Skip to content

Black Duck Policy Check #649

Black Duck Policy Check

Black Duck Policy Check #649

Workflow file for this run

name: Black Duck Policy Check
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
- "release-*"
pull_request:
types: [opened, synchronize, reopened, labeled]
pull_request_target:
types: [opened, synchronize, reopened, labeled]
branches:
- main
- "release-*"
jobs:
security:
if: github.repository == 'nutanix/docker-machine'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build Project
run: make build
- name: Black Duck Full Scan
if: ${{ github.event_name != 'pull_request' }}
uses: blackduck-inc/black-duck-security-scan@v2.10.0
with:
blackducksca_url: ${{ secrets.BLACKDUCK_URL }}
blackducksca_token: ${{ secrets.BLACKDUCK_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
blackducksca_scan_full: true
blackducksca_scan_failure_severities: "BLOCKER,CRITICAL"
- name: Black Duck PR Scan
if: ${{ github.event_name == 'pull_request' }}
uses: blackduck-inc/black-duck-security-scan@v2.10.0
env:
DETECT_PROJECT_VERSION_NAME: ${{ github.base_ref }}
with:
blackducksca_url: ${{ secrets.BLACKDUCK_URL }}
blackducksca_token: ${{ secrets.BLACKDUCK_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
blackducksca_scan_full: false
blackducksca_prComment_enabled: true