Skip to content

Commit e87ece1

Browse files
github-actions[bot]Copilotlbussell
authored
[nightly] Fix CG pipeline permission error: use writable install path (#6912)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: lbussell <[email protected]>
1 parent 19cba9a commit e87ece1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/docker-tools/templates/jobs/cg-build-projects.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
os: linux
2323
steps:
2424
- powershell: >
25-
./eng/docker-tools/Install-DotNetSdk.ps1 -Channel ${{ parameters.dotnetVersionChannel }} -InstallPath "/usr/share/.dotnet"
25+
./eng/docker-tools/Install-DotNetSdk.ps1 -Channel ${{ parameters.dotnetVersionChannel }} -InstallPath "$(Build.SourcesDirectory)/.dotnet"
2626
displayName: Run Dotnet Install Script
2727
- script: >
28-
find . -name '*.csproj' | grep $(cgBuildGrepArgs) | xargs -n 1 /usr/share/.dotnet/dotnet build
28+
find . -name '*.csproj' | grep $(cgBuildGrepArgs) | xargs -n 1 $(Build.SourcesDirectory)/.dotnet/dotnet build
2929
displayName: Build Projects
3030
3131
# Component Detection is only automatically run on production branches.

0 commit comments

Comments
 (0)