@@ -494,6 +494,7 @@ export async function getDefaultConfig({
494
494
495
495
const augmentationProperties = await calculateAugmentation (
496
496
codeql ,
497
+ repository ,
497
498
features ,
498
499
packsInput ,
499
500
queriesInput ,
@@ -608,6 +609,7 @@ async function loadConfig({
608
609
609
610
const augmentationProperties = await calculateAugmentation (
610
611
codeql ,
612
+ repository ,
611
613
features ,
612
614
packsInput ,
613
615
queriesInput ,
@@ -651,6 +653,7 @@ async function loadConfig({
651
653
* the config file sent to the CLI.
652
654
*
653
655
* @param codeql The CodeQL object.
656
+ * @param repository The repository to analyze.
654
657
* @param features The feature enablement object.
655
658
* @param rawPacksInput The packs input from the action configuration.
656
659
* @param rawQueriesInput The queries input from the action configuration.
@@ -669,6 +672,7 @@ async function loadConfig({
669
672
// exported for testing.
670
673
export async function calculateAugmentation (
671
674
codeql : CodeQL ,
675
+ repository : RepositoryNwo ,
672
676
features : FeatureEnablement ,
673
677
rawPacksInput : string | undefined ,
674
678
rawQueriesInput : string | undefined ,
@@ -691,6 +695,7 @@ export async function calculateAugmentation(
691
695
) ;
692
696
const overlayDatabaseMode = await getOverlayDatabaseMode (
693
697
codeql ,
698
+ repository ,
694
699
features ,
695
700
languages ,
696
701
sourceRoot ,
@@ -760,6 +765,7 @@ function parseQueriesFromInput(
760
765
*/
761
766
async function getOverlayDatabaseMode (
762
767
codeql : CodeQL ,
768
+ repository : RepositoryNwo ,
763
769
features : FeatureEnablement ,
764
770
languages : Language [ ] ,
765
771
sourceRoot : string ,
@@ -781,7 +787,12 @@ async function getOverlayDatabaseMode(
781
787
`Setting overlay database mode to ${ overlayDatabaseMode } ` +
782
788
"from the CODEQL_OVERLAY_DATABASE_MODE environment variable." ,
783
789
) ;
784
- } else if ( await features . getValue ( Feature . OverlayAnalysis , codeql ) ) {
790
+ } else if (
791
+ // TODO: Remove the repository owner check once support for overlay analysis
792
+ // stabilizes, and no more backward-incompatible changes are expected.
793
+ [ "github" , "dsp-testing" ] . includes ( repository . owner ) &&
794
+ ( await features . getValue ( Feature . OverlayAnalysis , codeql ) )
795
+ ) {
785
796
if ( isAnalyzingPullRequest ( ) ) {
786
797
overlayDatabaseMode = OverlayDatabaseMode . Overlay ;
787
798
logger . info (
0 commit comments