diff --git a/actions/extractor/tools/autobuild-impl.ps1 b/actions/extractor/tools/autobuild-impl.ps1 index 6ae433f2599c..1b7805efa041 100644 --- a/actions/extractor/tools/autobuild-impl.ps1 +++ b/actions/extractor/tools/autobuild-impl.ps1 @@ -2,10 +2,16 @@ if (($null -ne $env:LGTM_INDEX_INCLUDE) -or ($null -ne $env:LGTM_INDEX_EXCLUDE) Write-Output 'Path filters set. Passing them through to the JavaScript extractor.' } else { Write-Output 'No path filters set. Using the default filters.' + # Note: We're adding the `reusable_workflows` subdirectories to proactively + # record workflows that were called cross-repo, check them out locally, + # and enable an interprocedural analysis across the workflow files. + # These workflows follow the convention `.github/reusable_workflows//*.ya?ml` $DefaultPathFilters = @( 'exclude:**/*', - 'include:.github/workflows/**/*.yml', - 'include:.github/workflows/**/*.yaml', + 'include:.github/workflows/*.yml', + 'include:.github/workflows/*.yaml', + 'include:.github/reusable_workflows/**/*.yml', + 'include:.github/reusable_workflows/**/*.yaml', 'include:**/action.yml', 'include:**/action.yaml' ) diff --git a/actions/extractor/tools/autobuild.sh b/actions/extractor/tools/autobuild.sh index 57adbf96279d..ce6a02b5b762 100755 --- a/actions/extractor/tools/autobuild.sh +++ b/actions/extractor/tools/autobuild.sh @@ -2,10 +2,16 @@ set -eu +# Note: We're adding the `reusable_workflows` subdirectories to proactively +# record workflows that were called cross-repo, check them out locally, +# and enable an interprocedural analysis across the workflow files. +# These workflows follow the convention `.github/reusable_workflows//*.ya?ml` DEFAULT_PATH_FILTERS=$(cat << END exclude:**/* -include:.github/workflows/**/*.yml -include:.github/workflows/**/*.yaml +include:.github/workflows/*.yml +include:.github/workflows/*.yaml +include:.github/reusable_workflows/**/*.yml +include:.github/reusable_workflows/**/*.yaml include:**/action.yml include:**/action.yaml END