From ee41ad052fa37a433ac9d80dcaad57e905281e35 Mon Sep 17 00:00:00 2001 From: "Project Mu UEFI Bot [bot]" <45776386+uefibot@users.noreply.github.com> Date: Wed, 1 Mar 2023 19:36:03 -0500 Subject: [PATCH] Repo File Sync: synced file(s) with microsoft/mu_devops (#42) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Includes Git long path support on Windows CodeQL workflow runs: It is a well known limitation that GitHub uses the pattern `/_work///` as the working directory on the GitHub workflow agents. It is redundant and particularly impactful on Windows as discussed below: https://github.com/msysgit/msysgit/wiki/Git-cannot-create-a-file-or-directory-with-a-long-path This especially causes an issue in a Mu repository at the moment (`mu_common_intel_min_platform`) due to its longer name which is repeated twice in the path (as ``). This change is limited to the GitHub CodeQL workflow and was found to resolve the issue encountered and not raise any additional issues in this workflow in testing. --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#4308235673](https://github.com/microsoft/mu_devops/actions/runs/4308235673) --- .github/release-draft-config.yml | 2 ++ .github/workflows/codeql.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/release-draft-config.yml b/.github/release-draft-config.yml index 2c422699..e2d2e209 100644 --- a/.github/release-draft-config.yml +++ b/.github/release-draft-config.yml @@ -94,3 +94,5 @@ exclude-labels: exclude-contributors: - 'uefibot' + - 'dependabot' + - 'dependabot[bot]' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4bdebecf..de91bd84 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -96,6 +96,12 @@ jobs: with: python-version: '>=3.11' + - name: Use Git Long Paths on Windows + if: runner.os == 'Windows' + shell: pwsh + run: | + git config --system core.longpaths true + - name: Install/Upgrade pip Modules run: pip install -r pip-requirements.txt --upgrade