You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CC pipeline expects app-name property to be set when a dynamic scan step is executed, however that property is not set in any of the pipeline or trigger settings.
As a result, the cc-dynamic-scan step fails with an error below.
CI pipeline sets it dynamically during the deploy step.
Using PIPELINE_WORKSPACE as /workspace/app
590 | ERROR | 2024-10-03T19:48:24.837Z | index.ts:37:12 | An unhandled exception occured while processing the command
590 | ERROR | 2024-10-03T19:48:24.866Z | index.ts:38:12 | CLI version: 1.111.1
590 | ERROR | 2024-10-03T19:48:24.878Z | index.ts:39:12 | CLI argv: ["/opt/cocoa/bin/cocoa.linux","/snapshot/cli/build/index.js","inventory","get","--entry=","--org=rag-da-lab","--repo=rag-lab-00-inventory-repo","--environment=prod","--git-provider=gitlab","--git-token-path=./inventory-token","--git-api-url=https://us-south.git.cloud.ibm.com/api/v4","--property=app_artifacts"]
590 | ERROR | 2024-10-03T19:48:24.880Z | index.ts:81:12 | Full stack trace is shown below:
590 | ERROR | 2024-10-03T19:48:24.896Z | index.ts:82:12 | SyntaxError: Unexpected token e in JSON at position 2
590 | ERROR | 2024-10-03T19:48:24.896Z | index.ts:82:12 | at JSON.parse (<anonymous>)
590 | ERROR | 2024-10-03T19:48:24.897Z | index.ts:82:12 | at Inventory.getEntry (/snapshot/cli/src/inventory.ts:122:19)
590 | ERROR | 2024-10-03T19:48:24.897Z | index.ts:82:12 | at Object.handler (/snapshot/cli/src/commands/inventory/get.command.ts:135:24)
The text was updated successfully, but these errors were encountered:
@in-1911 it's currently set to pull the prod_app_url from inventory once CD pipeline is run. I'll make the script more robust to handle this case (CD not run yet, presumably) and also allow the dynamic scan to run against the dev_app_url if desired.
CC pipeline expects app-name property to be set when a dynamic scan step is executed, however that property is not set in any of the pipeline or trigger settings.
As a result, the cc-dynamic-scan step fails with an error below.
CI pipeline sets it dynamically during the deploy step.
The text was updated successfully, but these errors were encountered: