File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,16 @@ if (($null -ne $env:LGTM_INDEX_INCLUDE) -or ($null -ne $env:LGTM_INDEX_EXCLUDE)
2
2
Write-Output ' Path filters set. Passing them through to the JavaScript extractor.'
3
3
} else {
4
4
Write-Output ' No path filters set. Using the default filters.'
5
+ # Note: We're adding the `reusable_workflows` subdirectories to proactively
6
+ # record workflows that were called cross-repo, check them out locally,
7
+ # and enable an interprocedural analysis across the workflow files.
8
+ # These workflows follow the convention `.github/reusable_workflows/<nwo>/*.ya?ml`
5
9
$DefaultPathFilters = @ (
6
10
' exclude:**/*' ,
7
- ' include:.github/workflows/**/*.yml' ,
8
- ' include:.github/workflows/**/*.yaml' ,
11
+ ' include:.github/workflows/*.yml' ,
12
+ ' include:.github/workflows/*.yaml' ,
13
+ ' include:.github/reusable_workflows/**/*.yml' ,
14
+ ' include:.github/reusable_workflows/**/*.yaml' ,
9
15
' include:**/action.yml' ,
10
16
' include:**/action.yaml'
11
17
)
Original file line number Diff line number Diff line change 2
2
3
3
set -eu
4
4
5
+ # Note: We're adding the `reusable_workflows` subdirectories to proactively
6
+ # record workflows that were called cross-repo, check them out locally,
7
+ # and enable an interprocedural analysis across the workflow files.
8
+ # These workflows follow the convention `.github/reusable_workflows/<nwo>/*.ya?ml`
5
9
DEFAULT_PATH_FILTERS=$( cat << END
6
10
exclude:**/*
7
- include:.github/workflows/**/*.yml
8
- include:.github/workflows/**/*.yaml
11
+ include:.github/workflows/*.yml
12
+ include:.github/workflows/*.yaml
13
+ include:.github/reusable_workflows/**/*.yml
14
+ include:.github/reusable_workflows/**/*.yaml
9
15
include:**/action.yml
10
16
include:**/action.yaml
11
17
END
You can’t perform that action at this time.
0 commit comments