Repo File Sync: Support CodeQL Plugin in BaseTools (#831)

synced local file(s) with
[microsoft/mu_devops](https://github.com/microsoft/mu_devops).

🤖: View the [Repo File Sync Configuration
File](https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml)
to see how files are synced.

---

This PR was created automatically by the
[repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action)
workflow run
[#7629520553](https://github.com/microsoft/mu_devops/actions/runs/7629520553)

Signed-off-by: Project Mu UEFI Bot <uefibot@microsoft.com>
This commit is contained in:
Project Mu UEFI Bot [bot] 2024-01-23 13:54:01 -05:00 коммит произвёл GitHub
Родитель 32541aed5f
Коммит e7cf788fcd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 3 добавлений и 1 удалений

4
.github/workflows/codeql-platform.yml поставляемый
Просмотреть файл

@ -324,7 +324,9 @@ jobs:
from pathlib import Path from pathlib import Path
# Find the plugin directory that contains the CodeQL plugin # Find the plugin directory that contains the CodeQL plugin
plugin_dir = list(Path(os.environ['GITHUB_WORKSPACE']).rglob('.pytool/Plugin/CodeQL')) plugin_dir = list(Path(os.environ['GITHUB_WORKSPACE']).rglob('BaseTools/Plugin/CodeQL'))
if not plugin_dir:
plugin_dir = list(Path(os.environ['GITHUB_WORKSPACE']).rglob('.pytool/Plugin/CodeQL'))
# This should only be found once # This should only be found once
if len(plugin_dir) == 1: if len(plugin_dir) == 1: