add install workflow #28
Workflow file for this run
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
name: Black Duck Policy Check | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
jobs: | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "16.19.x" | |
- name: Build Project | |
run: yarn install && yarn build-pkg nutanix | |
- name: Black Duck Full Scan | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: synopsys-sig/[email protected] | |
env: | |
DETECT_PROJECT_NAME: ${{ github.event.repository.name }} | |
with: | |
blackduck_url: ${{ secrets.BLACKDUCK_URL }} | |
blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
blackduck_scan_full: true | |
blackduck_scan_failure_severities: 'BLOCKER,CRITICAL' | |
- name: Black Duck PR Scan | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: synopsys-sig/[email protected] | |
env: | |
DETECT_PROJECT_VERSION_NAME: ${{ github.base_ref }} | |
DETECT_PROJECT_NAME: ${{ github.event.repository.name }} | |
with: | |
blackduck_url: ${{ secrets.BLACKDUCK_URL }} | |
blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
blackduck_scan_full: false | |
blackduck_prComment_enabled: true |