Open sschuh-mumdat opened 2 weeks ago
I logged into the server with the "github-servive" Account which runs the github-runner and docker as a service user. I did not know, that the nuget sources are stored per user.
So I tried the following...
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
PS C:\Users\github-service> dotnet tool install sign --version 0.9.1-beta.24123.2 --tool-path C:\Users\github-service\AppData\Local\Temp\SigningTool-784630865
No NuGet sources are defined or enabled
PS C:\Users\github-service> dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
Die Paketquelle namens "nuget.org" wurde erfolgreich hinzugefügt.
And now it works!
@freddydk Is it maybe possible to add this command to Github AL-Go? dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
Just to prevent others running into the same problem.
Or maybe...
The following line in https://github.com/microsoft/AL-Go/blob/main/Actions/Sign/Sign.psm1 .....
dotnet tool install sign --version $version --tool-path $tempFolder | Out-Null
...should not nulled out, to show the problem.
We had the same problem (nuget setup stored per user). As a workaround, we had the same solution as you
AL-Go version
6.0
Describe the issue
Hi,
maybe someone give me a hint in the right direction...
To the story: i'm about to setup and test a self-hosted runner on a Windows server.
Installed components: choco install git --force --params "/NoAutoCrlf" choco install 7zip choco install gh choco install pwsh -y choco install vcredist140 -y choco install dotnet -y choco install dotnet-sdk -y
Feed: dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
Windows Defender/Antivirus is disabled.
When it goes to signing, following error occurs:
"The sign.exe can not be found."
Additional info: I logged onto the server and tried it manually with the Admin user account, no problem at all, signing tool will be downloaded to the given path.
dotnet tool install sign --version 0.9.1-beta.24123.2 --tool-path C:\Users\github-service\AppData\Local\Temp\SigningTool-784630865
On the runners provided by Github, no error occurs.
Solution, see next post.