Skip to content

Commit

Permalink
chore: add log level input to blackduck scan (#1007)
Browse files Browse the repository at this point in the history
* chore: add log level input to blackduck scan

* chore: update lerna

* chore: update dependencies

* chore: quote OFF to keep it as string
  • Loading branch information
wattachai-lseg authored Nov 7, 2023
1 parent fd69344 commit 596fd3c
Show file tree
Hide file tree
Showing 3 changed files with 9,801 additions and 9,923 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/blackduck_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ on:
- v6
- v7
default: v7
log-level:
description: 'Log level of scanning. Use DEBUG or TRACE for troubleshooting.'
type: choice
options:
- 'OFF'
- ERROR
- WARN
- INFO
- DEBUG
- TRACE
default: INFO

jobs:
scan-code:
Expand Down Expand Up @@ -51,6 +62,7 @@ jobs:
--blackduck.api.token="${{ secrets.BLACKDUCK_APP_TOKEN }}" \
--blackduck.url="${{ vars.BLACKDUCK_URL }}" \
--blackduck.trust.cert=true \
--logging.level.detect=${{ inputs.log-level }} \
--detect.excluded.directories=appsec \
--detect.npm.dependency.types.excluded="DEV" \
--detect.lerna.path="./node_modules/.bin/lerna" # make sure blackduck use lerna from npm package rather than shell one
Loading

0 comments on commit 596fd3c

Please sign in to comment.