@@ -507,6 +507,7 @@ export async function getDefaultConfig({
507
507
508
508
const augmentationProperties = await calculateAugmentation (
509
509
codeql ,
510
+ repository ,
510
511
features ,
511
512
packsInput ,
512
513
queriesInput ,
@@ -621,6 +622,7 @@ async function loadConfig({
621
622
622
623
const augmentationProperties = await calculateAugmentation (
623
624
codeql ,
625
+ repository ,
624
626
features ,
625
627
packsInput ,
626
628
queriesInput ,
@@ -664,6 +666,7 @@ async function loadConfig({
664
666
* the config file sent to the CLI.
665
667
*
666
668
* @param codeql The CodeQL object.
669
+ * @param repository The repository to analyze.
667
670
* @param features The feature enablement object.
668
671
* @param rawPacksInput The packs input from the action configuration.
669
672
* @param rawQueriesInput The queries input from the action configuration.
@@ -682,6 +685,7 @@ async function loadConfig({
682
685
// exported for testing.
683
686
export async function calculateAugmentation (
684
687
codeql : CodeQL ,
688
+ repository : RepositoryNwo ,
685
689
features : FeatureEnablement ,
686
690
rawPacksInput : string | undefined ,
687
691
rawQueriesInput : string | undefined ,
@@ -705,6 +709,7 @@ export async function calculateAugmentation(
705
709
const { overlayDatabaseMode, useOverlayDatabaseCaching } =
706
710
await getOverlayDatabaseMode (
707
711
codeql ,
712
+ repository ,
708
713
features ,
709
714
sourceRoot ,
710
715
buildMode ,
@@ -785,6 +790,7 @@ function parseQueriesFromInput(
785
790
*/
786
791
async function getOverlayDatabaseMode (
787
792
codeql : CodeQL ,
793
+ repository : RepositoryNwo ,
788
794
features : FeatureEnablement ,
789
795
sourceRoot : string ,
790
796
buildMode : BuildMode | undefined ,
@@ -809,7 +815,10 @@ async function getOverlayDatabaseMode(
809
815
`Setting overlay database mode to ${ overlayDatabaseMode } ` +
810
816
"from the CODEQL_OVERLAY_DATABASE_MODE environment variable." ,
811
817
) ;
812
- } else if ( await features . getValue ( Feature . OverlayAnalysis , codeql ) ) {
818
+ } else if (
819
+ repository . owner in [ "github" , "dsp-testing" ] &&
820
+ ( await features . getValue ( Feature . OverlayAnalysis , codeql ) )
821
+ ) {
813
822
if ( isAnalyzingPullRequest ( ) ) {
814
823
overlayDatabaseMode = OverlayDatabaseMode . Overlay ;
815
824
useOverlayDatabaseCaching = true ;
0 commit comments