Skip to content

Commit

Permalink
Repo File Sync: synced file(s) with microsoft/mu_devops (#42)
Browse files Browse the repository at this point in the history
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
`<install_dir>/_work/<repo_name>/<repo_name>/` 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 `<repo-name>`).

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)
  • Loading branch information
uefibot authored Mar 2, 2023
1 parent c0f7b04 commit ee41ad0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/release-draft-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ exclude-labels:

exclude-contributors:
- 'uefibot'
- 'dependabot'
- 'dependabot[bot]'
6 changes: 6 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ee41ad0

Please sign in to comment.