@@ -4,6 +4,7 @@ import type { ActionState, Logger } from "../action-common";
44import type { CodeQL } from "../codeql" ;
55import type { ActionConfig } from "../config/action-config" ;
66import { addDiagnostic , makeDiagnostic } from "../diagnostics" ;
7+ import { DocUrl } from "../doc-url" ;
78import { Feature } from "../feature-flags" ;
89import { macOSVersion , xcodeVersion } from "../platform" ;
910import { ConfigurationError } from "../util" ;
@@ -55,7 +56,10 @@ function handleUnsupportedVersion(
5556 languages : config . languages ,
5657 [ attributeName ] : version . toString ( ) ,
5758 } ,
58- markdownMessage : baseMessage ,
59+ markdownMessage : [
60+ baseMessage ,
61+ `For more information, see [this announcement](${ DocUrl . UNSUPPORTED_TRACED_ANALYSIS_MACOS27 } ).` ,
62+ ] . join ( " " ) ,
5963 severity : skipUnsupportedTracedAnalysis ? "error" : "warning" ,
6064 visibility : {
6165 cliSummaryTable : true ,
@@ -67,14 +71,20 @@ function handleUnsupportedVersion(
6771 ) ;
6872 }
6973
74+ // Log messages generally don't render as markdown, so we include the URL verbatim there.
75+ const logMessage = [
76+ baseMessage ,
77+ `For more information, see ${ DocUrl . UNSUPPORTED_TRACED_ANALYSIS_MACOS27 } ` ,
78+ ] . join ( " " ) ;
79+
7080 // Throw an error to abort the analysis if the FF is enabled or log the message.
7181 if ( skipUnsupportedTracedAnalysis ) {
7282 // ConfigurationErrors are converted to the "aborted" status by the exception handler
7383 // in `init-action.ts` that guards the call to `checkRunnerSupportsTracedAnalysis`.
74- throw new ConfigurationError ( baseMessage ) ;
84+ throw new ConfigurationError ( logMessage ) ;
7585 } else {
7686 // This will also show up as a workflow annotation.
77- logger . warning ( baseMessage ) ;
87+ logger . warning ( logMessage ) ;
7888 }
7989}
8090
0 commit comments