-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NuGet Issue on GitHub Actions With Azure Trusted Signing #8828
Comments
So, here are a few notes, but the TLDR is the 403 error blocking your signing. Not sure if there's a way to add a verbosity to
It's installed already. TrustedSigning module successfully installed (past tense
Azure Trusted Signing set up successfully if it's gotten to this point: (note the
|
First of all, thank you so much for responding so swiftly to this issue & clarifying the error messages. The reason I was a bit worried was that the text was in big red letters: If this log is produced by Electron Builder, it may help making the log non-red (nota bene: I have Then, the 403 seems to mean that my authentication method isn't proper in this context. It was a bit hard to decide, because Microsoft is very often telling one to use a managed user and creating a client secret for that, but in other places they recommend other things. I have used both a managed user and an app registration, both of which failed with a 403 despite having the correct role (the Signer one). That being said, if I understood the issue correctly, you were building this entire flow based off the Azure Action, so is it correct that I should just follow their guide and ignore whatever else…? I know it's not your fault or task, but since you've experimented a bit with it, maybe you have the right pointer? I'm really exhausted after having had 200 open tabs with various tutorials for the past days… the tutorial others have linked didn't work. |
That's what I had to do when I was implementing the feature 😅 Re: error message. I understand what you're saying. From a quick look at the code, that red logging should only be there with DEBUG env var set, as it's being rendered from one of the monorepo's |
Hi,
I've spent the past days trying to get Azure Trusted Code Signing to work using a GH Actions pipeline and the appropriate settings. I've set everything up and run into errors. So, first, I've updated to Electron Builder 26.0.1 to enable Azure signing, and I have set the appropriate environment variables.
Here's the config:
And here's the two (!) errors I observe. First is that NuGet apparently can't install the required TrustedSigning module in Powershell. And the second is a 403 error. Due to the first error, I cannot be sure whether this causes the second one, or whether both are independent.
Unfortunately, I don't have a Windows computer to test this out. I'm not sure whether this is really an issue with Electron Builder, or whether the documentation needs some updating…? Sorry for bothering you guys again, I really tried hard to get this to work by researching and reading documentation.
Here's the logs:
The text was updated successfully, but these errors were encountered: