message: fix: Blackduck performance threshold
diff: name: blackduck-scan
  on:
  - pull_request: ~
  - push:
  - branches: ['main']
  + workflow_dispatch:
  + schedule:
  + - cron: 0 23 * * *
  jobs:
  tests:
  @@ -28,7 +28,7 @@ jobs:
  key: ${{ matrix.os }}-${{ hashFiles('**/yarn.lock') }}
  - run: yarn install --frozen-lockfile
  - run: sudo apt-get install jq
  - - run: echo "project_version=$(lerna ls -l --json | jq '.[0].version' | tr -d '"')-${GITHUB_REF_NAME}" >> $GITHUB_ENV
  + - run: echo "project_version=$(lerna ls -l --json | jq '.[0].version' | tr -d '"')" >> $GITHUB_ENV
  - name: Blackduck Scan
  uses: SAP/project-piper-action@de2106c218782b7caa3989c7a8af8f3b9d5fa36b
  with:
  @@ -43,21 +43,3 @@ jobs:
  env:
  PIPER_token: ${{ secrets.BLACKDUCK_TOKEN }}
  PROJECT_VERSION: ${{ env.project_version }}
  - - name: Sleep on retry
  - if: ${{ failure() }}
  - run: sleep 60
  - - name: Blackduck Scan Retry
  - uses: SAP/project-piper-action@de2106c218782b7caa3989c7a8af8f3b9d5fa36b
  - if: ${{ failure() }}
  - with:
  - command: detectExecuteScan
  - flags: \
  - --version=$PROJECT_VERSION \
  - --scanProperties="\
  - --detect.yarn.prod.only=true \
  - --blackduck.signature.scanner.memory=4096 \
  - --detect.timeout=6000 \
  - --blackduck.trust.cert=true"
  - env:
  - PIPER_token: ${{ secrets.BLACKDUCK_TOKEN }}
  - PROJECT_VERSION: ${{ env.project_version }}
  