Checkmarx / ast-azure-plugin

The CxAST Azure DevOps plugin enables you to trigger SAST, SCA, and KICS scans directly from an Azure DevOps pipeline.
https://marketplace.visualstudio.com/items?itemName=checkmarx.checkmarx-ast-azure-plugin
Apache License 2.0
4 stars 2 forks source link

[BUG] Error validating scan types: invalid character '<' looking for beginning of value #454

Closed azizabah closed 3 months ago

azizabah commented 10 months ago

Describe the bug

The Checkmarx AST@2 task is throwing an error:

Creating directory Error validating scan types: invalid character '<' looking for beginning of value Exit code received from AST-CLI: 1

Expected behavior

It doesn't throw an error.

Actual behavior

It throws an error.

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Environment

Additional comments

Add any other context about the problem here.

Logs

2023-11-30T15:23:27.2264094Z ##[section]Starting: CheckmarxAST 2023-11-30T15:23:27.2268612Z ============================================================================== 2023-11-30T15:23:27.2268739Z Task : Checkmarx AST 2023-11-30T15:23:27.2268798Z Description : Add Secure Source Code Analysis inside your build process 2023-11-30T15:23:27.2268904Z Version : 2.0.28 2023-11-30T15:23:27.2268960Z Author : Checkmarx 2023-11-30T15:23:27.2269016Z Help : https://github.com/CheckmarxDev/checkmarx-ast-azure-plugin#readme 2023-11-30T15:23:27.2269479Z ============================================================================== 2023-11-30T15:23:29.3322131Z No client ID and secret configured 2023-11-30T15:23:29.3334629Z Project name: some-service 2023-11-30T15:23:29.3336232Z Branch name: $(System.PullRequest.SourceBranch) 2023-11-30T15:23:29.3337420Z Agent: Azure DevOps 2023-11-30T15:23:29.3339095Z Additional Params: 2023-11-30T15:23:29.3458589Z Creating directory 2023-11-30T15:23:29.4682336Z Error validating scan types: invalid character '<' looking for beginning of value 2023-11-30T15:23:29.4726029Z Exit code received from AST-CLI: 1 2023-11-30T15:23:29.4808641Z ##[section]Finishing: CheckmarxAST

github-actions[bot] commented 10 months ago

Internal Jira issue: AST-33047

OrShamirCM commented 3 months ago

The issue can’t be reproduced. It happened when we had an error in one of our core servers. It's not a common issue and not related to the CLI (only the error message is). I am closing as I can't reproduce.