@@ -46,42 +46,6 @@ export const getOptionalInput = function (name: string): string | undefined {
4646 return value . length > 0 ? value : undefined ;
4747} ;
4848
49- /**
50- * Resolves the effective tools input by combining workflow input and repository properties.
51- * The explicit `tools` workflow input takes precedence. If none is provided,
52- * fall back to the repository property (if set).
53- *
54- * @param repositoryProperties - The loaded repository properties object
55- * @param toolsPropertyName - The name of the tools property to look up
56- * @param logger - Logger for outputting resolution messages
57- * @returns The effective tools input value
58- */
59- export function resolveToolsInput (
60- repositoryProperties : Record < string , any > ,
61- toolsPropertyName : string ,
62- logger : Logger ,
63- ) : string | undefined {
64- const toolsWorkflowInput = getOptionalInput ( "tools" ) ;
65- const toolsPropertyValue : string | undefined =
66- repositoryProperties [ toolsPropertyName ] ;
67- const effectiveToolsInput = toolsWorkflowInput ?? toolsPropertyValue ;
68-
69- // Log the source of the tools input for transparency
70- if ( effectiveToolsInput ) {
71- if ( toolsWorkflowInput ) {
72- logger . info (
73- `Setting tools: ${ effectiveToolsInput } based on workflow input.` ,
74- ) ;
75- } else {
76- logger . info (
77- `Setting tools: ${ effectiveToolsInput } based on the '${ toolsPropertyName } ' repository property.` ,
78- ) ;
79- }
80- }
81-
82- return effectiveToolsInput ;
83- }
84-
8549export function getTemporaryDirectory ( ) : string {
8650 const value = process . env [ "CODEQL_ACTION_TEMP" ] ;
8751 return value !== undefined && value !== ""
0 commit comments