Skip to content

Bump actions/setup-node from 4 to 6 #780

Bump actions/setup-node from 4 to 6

Bump actions/setup-node from 4 to 6 #780

Workflow file for this run

name: Blackduck analysis
on:
push:
branches:
- develop
pull_request:
branches:
- develop
types: [opened, synchronize, reopened]
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120
environment: pr-analysis
env:
BLACKDUCK_TOKEN: ${{ secrets.BLACKDUCK_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: npm install
run: |
npm install
curl --silent -O https://detect.blackduck.com/detect9.sh
- name: npm install - single-tenant central-space
working-directory: app/single-tenant/central-space/incidents-app
run: npm install
- name: npm install - multi-tenant central-space
working-directory: app/multi-tenant/central-space/cap-js-incidents-app
run: npm install
- name: Run BlackDuck Scan - SDM plugin
run: |
bash ./detect9.sh \
--logging.level.com.synopsys.integration=WARN \
--blackduck.url="https://sap.blackducksoftware.com" \
--blackduck.api.token="$BLACKDUCK_TOKEN" \
--detect.blackduck.signature.scanner.arguments="--min-scan-interval=0" \
--detect.npm.arguments \
--detect.latest.release.version="9.6.0" \
--detect.project.version.distribution="SaaS" \
--detect.blackduck.signature.scanner.memory=4096 \
--detect.timeout=6000 \
--blackduck.trust.cert=true \
--detect.project.user.groups="SAP_DOC_MGMT_CAP_NODEJS 1.0" \
--detect.project.name="SAP_DOC_MGMT_CAP_NODEJS 1.0" \
--detect.project.version.name="1.0" \
--detect.code.location.name="SAP_DOC_MGMT_CAP_NODEJS 1.0/1.0" \
--detect.source.path="/home/runner/work/sdm/sdm" \
--detect.excluded.directories="app/single-tenant/personal-space,app/multi-tenant/personal-space" \
--detect.detector.search.depth=5 \
--detect.npm.dependency.types.excluded=DEV