@@ -8,6 +8,7 @@ import * as sinon from "sinon";
88import * as actionsUtil from "./actions-util" ;
99import * as api from "./api-client" ;
1010import { Feature , FeatureEnablement } from "./feature-flags" ;
11+ import { RepositoryPropertyName } from "./feature-flags/properties" ;
1112import { getRunnerLogger } from "./logging" ;
1213import * as setupCodeql from "./setup-codeql" ;
1314import * as tar from "./tar" ;
@@ -112,6 +113,7 @@ test.serial(
112113 false ,
113114 features ,
114115 getRunnerLogger ( true ) ,
116+ false ,
115117 ) ;
116118
117119 t . is ( source . sourceType , "download" ) ;
@@ -135,6 +137,7 @@ test.serial(
135137 false ,
136138 features ,
137139 getRunnerLogger ( true ) ,
140+ false ,
138141 ) ;
139142
140143 t . is ( source . toolsVersion , LINKED_CLI_VERSION . cliVersion ) ;
@@ -160,6 +163,7 @@ test.serial(
160163 false ,
161164 features ,
162165 logger ,
166+ false ,
163167 ) ;
164168
165169 // First, ensure that the CLI version is the linked version, so that backwards
@@ -213,6 +217,7 @@ test.serial(
213217 SAMPLE_DEFAULT_CLI_VERSION ,
214218 features ,
215219 logger ,
220+ false ,
216221 ) ;
217222
218223 // Basic sanity check that the version we got back is indeed
@@ -268,6 +273,7 @@ test.serial(
268273 SAMPLE_DEFAULT_CLI_VERSION ,
269274 features ,
270275 logger ,
276+ false ,
271277 ) ;
272278
273279 // Basic sanity check that the version we got back is indeed the version that the
@@ -322,6 +328,7 @@ test.serial(
322328 false ,
323329 features ,
324330 logger ,
331+ false ,
325332 ) ;
326333
327334 // Check that the `CodeQLToolsSource` object matches our expectations.
@@ -383,6 +390,7 @@ test.serial(
383390 false ,
384391 features ,
385392 logger ,
393+ false ,
386394 ) ;
387395
388396 // Check that the `CodeQLToolsSource` object matches our expectations.
@@ -437,6 +445,7 @@ test.serial(
437445 false ,
438446 features ,
439447 logger ,
448+ false ,
440449 ) ;
441450
442451 // Check that the toolcache functions were called with the expected arguments
@@ -504,6 +513,7 @@ const toolcacheInputFallbackMacro = test.macro({
504513 false ,
505514 features ,
506515 logger ,
516+ false ,
507517 ) ;
508518
509519 // Check that the toolcache functions were called with the expected arguments
@@ -612,7 +622,7 @@ test.serial(
612622 t . is ( source . toolsVersion , latestToolcacheVersion ) ;
613623
614624 const expectedMessages : string [ ] = [
615- `Attempting to use the latest CodeQL CLI version in the toolcache, as requested by the 'github-codeql-tools ' repository property.` ,
625+ `Attempting to use the latest CodeQL CLI version in the toolcache, as requested by the '${ RepositoryPropertyName . TOOLS } ' repository property.` ,
616626 `CLI version ${ latestToolcacheVersion } is the latest version in the toolcache.` ,
617627 `Using CodeQL CLI version ${ latestToolcacheVersion } from toolcache at ${ latestVersionPath } ` ,
618628 ] ;
@@ -657,8 +667,8 @@ test.serial(
657667 t . is ( source . toolsVersion , SAMPLE_DEFAULT_CLI_VERSION . cliVersion ) ;
658668
659669 const expectedMessages : string [ ] = [
660- `Attempting to use the latest CodeQL CLI version in the toolcache, as requested by the 'github-codeql-tools ' repository property.` ,
661- `Found no CodeQL CLI in the toolcache, ignoring the 'github-codeql-tools ' repository property...` ,
670+ `Attempting to use the latest CodeQL CLI version in the toolcache, as requested by the '${ RepositoryPropertyName . TOOLS } ' repository property.` ,
671+ `Found no CodeQL CLI in the toolcache, ignoring the '${ RepositoryPropertyName . TOOLS } ' repository property...` ,
662672 ] ;
663673 for ( const expectedMessage of expectedMessages ) {
664674 t . assert (
0 commit comments