Skip to content

Commit

Permalink
chore: separate version in Blackduck development project
Browse files Browse the repository at this point in the history
  • Loading branch information
wattachai-lseg committed Oct 12, 2023
1 parent 8fc35b6 commit 1998e2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/blackduck_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
description: Production
type: boolean
default: true
version:
description: 'For non-production scan only: base branch version'
type: choice
options:
- v6
- v7
default: v7

jobs:
scan-code:
Expand All @@ -28,7 +35,7 @@ jobs:
mv $DETECT_FILE appsec/
if [[ "${{ inputs.production }}" == "true" ]]; then export RELEASE_TYPE="PROD"; export VERSION_ID="Release_${GITHUB_REF#refs/heads/}"; fi
if [[ "${{ inputs.production }}" == "false" ]]; then export RELEASE_TYPE="DEV"; export VERSION_ID="Development-SINGLE"; fi
if [[ "${{ inputs.production }}" == "false" ]]; then export RELEASE_TYPE="DEV"; export VERSION_ID="Development-${{ inputs.version }}"; fi
if [[ -z "${{ vars.BLACKDUCK_APP_ID }}" ]]; then echo "[BLACKDUCK] APP_ID must be set"; exit 1; fi
if [[ -z "${{ vars.BLACKDUCK_PROJECT_ID }}" ]]; then echo "[BLACKDUCK] PROJECT_ID must be set"; exit 1; fi
if [[ -z "${{ secrets.BLACKDUCK_APP_TOKEN }}" ]]; then echo "[BLACKDUCK] BLACKDUCK_APP_TOKEN must be set"; exit 1; fi
Expand Down

0 comments on commit 1998e2b

Please sign in to comment.