diff --git a/package.json b/package.json index b3348f4..d16a296 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mondaycom/apps-cli", - "version": "4.10.3", + "version": "4.10.4", "description": "A cli tool to manage apps (and monday-code projects) in monday.com", "author": "monday.com Apps Team", "type": "module", diff --git a/src/commands/code/push.ts b/src/commands/code/push.ts index 151a794..7b6c074 100644 --- a/src/commands/code/push.ts +++ b/src/commands/code/push.ts @@ -1,7 +1,8 @@ import { Flags } from '@oclif/core'; +import chalk from 'chalk'; import { AuthenticatedCommand } from 'commands-base/authenticated-command'; -import { APP_ID_TO_ENTER, APP_VERSION_ID_TO_ENTER } from 'consts/messages'; +import { APP_ID_TO_ENTER, APP_VERSION_ID_TO_ENTER, SECURITY_SCAN_FEEDBACK_MESSAGE } from 'consts/messages'; import { DynamicChoicesService } from 'services/dynamic-choices-service'; import { getCurrentWorkingDirectory } from 'services/env-service'; import { validateIfCanBuild } from 'services/files-service'; @@ -98,6 +99,10 @@ export default class Push extends AuthenticatedCommand { const tasks = getTasksForServerSide(appVersionId, directoryPath, selectedRegion, securityScan); await tasks.run(); + + if (securityScan) { + logger.log(chalk.cyan(`\n${SECURITY_SCAN_FEEDBACK_MESSAGE}`)); + } } catch (error: any) { logger.debug(error, this.DEBUG_TAG); diff --git a/src/commands/code/report.ts b/src/commands/code/report.ts index b397586..2ac191b 100644 --- a/src/commands/code/report.ts +++ b/src/commands/code/report.ts @@ -6,7 +6,7 @@ import chalk from 'chalk'; import { StatusCodes } from 'http-status-codes'; import { AuthenticatedCommand } from 'commands-base/authenticated-command'; -import { APP_VERSION_ID_TO_ENTER, VAR_UNKNOWN } from 'consts/messages'; +import { APP_VERSION_ID_TO_ENTER, SECURITY_SCAN_FEEDBACK_MESSAGE, VAR_UNKNOWN } from 'consts/messages'; import { DynamicChoicesService } from 'services/dynamic-choices-service'; import { getDeploymentSecurityScan } from 'services/push-service'; import { HttpError } from 'types/errors'; @@ -108,6 +108,8 @@ export default class Report extends AuthenticatedCommand { } else { logger.log('Use the -o flag to save the full report to a JSON file.'); } + + logger.log(chalk.cyan(`\n${SECURITY_SCAN_FEEDBACK_MESSAGE}`)); } catch (error: unknown) { logger.debug({ res: error }, DEBUG_TAG); if (error instanceof HttpError) { diff --git a/src/consts/messages.ts b/src/consts/messages.ts index 7e2acec..950d18b 100644 --- a/src/consts/messages.ts +++ b/src/consts/messages.ts @@ -14,3 +14,6 @@ export const BUILD_ID_TO_ENTER = 'Please enter the build id of your app:'; export const LIVE_VERSION_ERROR_LOG = 'Operation failed: The latest app version is live. Create a new draft version or use --force to override'; + +export const SECURITY_SCAN_FEEDBACK_URL = 'https://wkf.ms/3SXbi6T'; +export const SECURITY_SCAN_FEEDBACK_MESSAGE = `Share feedback on these results to help improve the security scan experience: ${SECURITY_SCAN_FEEDBACK_URL}`;