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
AUTH_INVALID_CREDENTIALS|401|210|Authentication failed with HTTP 401 Unauthorized. Please verify your Veracode API credentials are correct and have not expired.
122
+
AUTH_INVALID_CREDENTIALS|unauthorized|210|Unauthorized access detected. Please verify your Veracode API credentials are correct and have not expired.
123
+
PKG_ARTIFACT_NOT_FOUND|file not found|240|File not found. The specified file could not be located. Please verify the file path and ensure the artifact exists.
124
+
ENGINE_PARSER_ERROR|parse error|250|Parser error detected. The Veracode engine encountered an error while parsing the code. This may indicate syntax issues or unsupported code constructs.
125
125
```
126
126
127
+
### Error Message Field
128
+
129
+
The fourth field contains a detailed error message that will be displayed in the analysis summary when a pattern is matched. These messages provide:
130
+
- Clear description of the issue
131
+
- Specific guidance on how to resolve the problem
132
+
- Context about what the error means
133
+
- Recommended next steps
134
+
127
135
## How It Works
128
136
129
137
1.**Command Execution**: The wrapper executes the provided command and captures its output
- Uses logical exit code from pattern matching if patterns are found
137
-
5.**Output Display**: Shows command output, analysis summary, and final exit code
145
+
5.**Output Display**: Shows command output, analysis summary with detailed error messages, and final exit code
146
+
147
+
## Analysis Summary Output
148
+
149
+
When a pattern is matched, the wrapper displays a comprehensive analysis summary:
150
+
151
+
```
152
+
----------------------------------------
153
+
[WRAPPER] INFO: ANALYSIS SUMMARY
154
+
----------------------------------------
155
+
Original command exit code: 0
156
+
Pattern matched: AUTH_INVALID_CREDENTIALS
157
+
Pattern regex: invalid.*credential
158
+
Match count: 1
159
+
Logical exit code: 210
160
+
Error message: Invalid API credentials detected. Please verify your Veracode API ID and API Key are correct and have not expired. Check your credentials in the Veracode platform and update your configuration.
161
+
Reason: Pattern 'AUTH_INVALID_CREDENTIALS' found in command output
162
+
----------------------------------------
163
+
```
164
+
165
+
The summary includes:
166
+
-**Original command exit code**: The exit code from the wrapped command
167
+
-**Pattern matched**: The name of the matched pattern
168
+
-**Pattern regex**: The regular expression that matched
169
+
-**Match count**: Number of times the pattern was found
170
+
-**Logical exit code**: The standardized exit code (201-254)
171
+
-**Error message**: Detailed explanation and guidance
172
+
-**Reason**: Brief explanation of why this exit code was chosen
0 commit comments