@@ -494,6 +494,7 @@ export async function getDefaultConfig({
494494
495495 const augmentationProperties = await calculateAugmentation (
496496 codeql ,
497+ repository ,
497498 features ,
498499 packsInput ,
499500 queriesInput ,
@@ -608,6 +609,7 @@ async function loadConfig({
608609
609610 const augmentationProperties = await calculateAugmentation (
610611 codeql ,
612+ repository ,
611613 features ,
612614 packsInput ,
613615 queriesInput ,
@@ -651,6 +653,7 @@ async function loadConfig({
651653 * the config file sent to the CLI.
652654 *
653655 * @param codeql The CodeQL object.
656+ * @param repository The repository to analyze.
654657 * @param features The feature enablement object.
655658 * @param rawPacksInput The packs input from the action configuration.
656659 * @param rawQueriesInput The queries input from the action configuration.
@@ -669,6 +672,7 @@ async function loadConfig({
669672// exported for testing.
670673export async function calculateAugmentation (
671674 codeql : CodeQL ,
675+ repository : RepositoryNwo ,
672676 features : FeatureEnablement ,
673677 rawPacksInput : string | undefined ,
674678 rawQueriesInput : string | undefined ,
@@ -691,6 +695,7 @@ export async function calculateAugmentation(
691695 ) ;
692696 const overlayDatabaseMode = await getOverlayDatabaseMode (
693697 codeql ,
698+ repository ,
694699 features ,
695700 languages ,
696701 sourceRoot ,
@@ -760,6 +765,7 @@ function parseQueriesFromInput(
760765 */
761766async function getOverlayDatabaseMode (
762767 codeql : CodeQL ,
768+ repository : RepositoryNwo ,
763769 features : FeatureEnablement ,
764770 languages : Language [ ] ,
765771 sourceRoot : string ,
@@ -781,7 +787,10 @@ async function getOverlayDatabaseMode(
781787 `Setting overlay database mode to ${ overlayDatabaseMode } ` +
782788 "from the CODEQL_OVERLAY_DATABASE_MODE environment variable." ,
783789 ) ;
784- } else if ( await features . getValue ( Feature . OverlayAnalysis , codeql ) ) {
790+ } else if (
791+ [ "github" , "dsp-testing" ] . includes ( repository . owner ) &&
792+ ( await features . getValue ( Feature . OverlayAnalysis , codeql ) )
793+ ) {
785794 if ( isAnalyzingPullRequest ( ) ) {
786795 overlayDatabaseMode = OverlayDatabaseMode . Overlay ;
787796 logger . info (
0 commit comments