Skip to content

Commit

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

* chore: quote OFF to keep it as string

* chore: add the missing default input value for blackduck scan
  • Loading branch information
wattachai-lseg committed Nov 7, 2023
1 parent 28e5224 commit c746f71
Showing 1 changed file with 12 additions and 0 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: v6
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 @@ -52,6 +63,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

0 comments on commit c746f71

Please sign in to comment.