@@ -112,6 +112,7 @@ export enum CliConfigErrorCategory {
112
112
}
113
113
114
114
type CliErrorConfiguration = {
115
+ // All of these snippets should be present to match to a specific CliConfigErrorCategory.
115
116
cliErrorMessageSnippets : string [ ] ;
116
117
exitCode ?: number ;
117
118
// Error message to prepend for this type of CLI error.
@@ -130,11 +131,14 @@ export const cliErrorsConfig: Record<
130
131
// Usually when a manual build script has failed, or if an autodetected language
131
132
// was unintended to have CodeQL analysis run on it.
132
133
[ CliConfigErrorCategory . DetectedCodeButCouldNotProcess ] : {
134
+ exitCode : 32 ,
133
135
cliErrorMessageSnippets : [
134
136
"CodeQL detected code written in" ,
135
137
"but could not process any of it" ,
136
138
] ,
137
- additionalErrorMessageToPrepend : `Check the build script, if applicable, for the language specified in the error:` ,
139
+ additionalErrorMessageToPrepend :
140
+ "No code found during the build. Please see: " +
141
+ "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build." ,
138
142
} ,
139
143
// Version of CodeQL CLI is incompatible with this version of the CodeQL Action
140
144
[ CliConfigErrorCategory . IncompatibleWithActionVersion ] : {
@@ -161,7 +165,6 @@ export const cliErrorsConfig: Record<
161
165
* can be applied to the DetectedCodeButCouldNotProcess category.
162
166
*/
163
167
[ CliConfigErrorCategory . NoJavaScriptTypeScriptCodeFound ] : {
164
- exitCode : 32 ,
165
168
cliErrorMessageSnippets : [ "No JavaScript or TypeScript code found." ] ,
166
169
additionalErrorMessageToPrepend :
167
170
"No code found during the build. Please see: " +
0 commit comments