-
-
Notifications
You must be signed in to change notification settings - Fork 492
Disable code signing when workflows run from forks #208
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
Conversation
- Skip Mac/Win code signing and Apple notarization only if PR comes from a fork - Disable workflows entirely if the user enabled Github Actions in their fork repo - Add steps to help Mac users to test their forked code in BUILDING.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a few comments here and there. I will accept the PR if you re-submit it from a fork. Otherwise, we cannot verify if it works or not.
From the build logs:
IS_FORK: false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert. The project uses trailing empty lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
software
-> the software
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signing and notarization is
-> signing and notarization are
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use empty trailing lines.
Hint: if you edit the code in VS Code, Code will insert the empty line for you one save. Please use Code.
arduino-ide/.vscode/settings.json
Line 19 in eadc993
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing empty line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if I understand this condition. Can you please explain?
@kittaakos I'll open a new PR from a fork, so we can test the workflow mods I prepared as you requested.
I'll address all your change requests in the new PR and answer to your question there. I'll close this one once we merge the new PR.
Is that ok for you?
Is that ok for you?
👍 Thank you!
Superseded by #213
This PR refactors the CI workflows to be more "fork friendly".
If workflows are run on a PR generated by a fork, where secrets are not available, the CI will run skipping the signing steps, providing unsigned artifacts.
What this PR does:
their fork repo