@@ -23,10 +23,49 @@ verified against the hashes provided in the `build.properties` file.
2323At the end of the workflow run, each built installer can be found in a zip file
2424on the workflow output page.
2525
26- ## Current build limitations
26+ ## Code signing and secrets
27+
28+ The workflow will optionally sign Windows and macOS installers during the build
29+ if the relevant repository secrets and variables have been defined. Signing is
30+ triggered by the presence of certain variables (marked) - all related secrets
31+ must then be defined.
32+
33+ ### Variables
34+
35+ - ` APP_CERT_ID ` : the name of the Apple Developer Application Certificate passed
36+ in to ` codesign ` during the macOS installer build. Presence of this variable
37+ triggers signing, and all other related macOS variables and secrets must be
38+ added.
39+ - ` AZURE_CERT_PROFILE_NAME ` : the name of the certificate profile used by the
40+ Azure Trusted Signing action during the Windows installer build. Presence of
41+ this variable triggers signing, and all other related Windows secrets must be
42+ added.
43+ - ` INST_CERT_ID ` : the name of the Apple Developer Installer Certificate passed
44+ in to ` pkgbuild ` during the macOS installer build.
2745
28- The Windows installer must currently be downloaded and code signed locally.
29- Optional support for signing in the workflow will be added at a later date.
46+ ### Secrets
47+
48+ - ` APP_CERT_BASE64 ` : the Apple Developer Application Certificate exported as
49+ base64 (see related [ GitHub documentation] [ github-macos ] ). Required for macOS
50+ installer signing.
51+ - ` APP_CERT_PASSWORD ` : password for the Apple Developer Application Certificate.
52+ Required for macOS installer signing.
53+ - ` AZURE_CLIENT_ID ` : the ` azure-client-id ` parameter for the Azure Trusted
54+ Signing action. Required for Windows installer signing.
55+ - ` AZURE_CLIENT_SECRET ` : the ` azure-client-secret ` parameter for the Azure
56+ Trusted Signing action. Required for Windows installer signing.
57+ - ` AZURE_CODE_SIGNING_NAME ` : the ` trusted-signing-account-name ` parameter for
58+ the Azure Trusted Signing action. Required for Windows installer signing.
59+ - ` AZURE_ENDPOINT ` : the ` endpoint ` parameter for the Azure Trusted Signing
60+ action. Required for Windows installer signing.
61+ - ` AZURE_TENANT_ID ` : the ` azure-tenant-id ` parameter for the Azure Trusted
62+ Signing action. Required for Windows installer signing.
63+ - ` INST_CERT_BASE64 ` : the Apple Developer Installer Certificate exported as
64+ base64. Required for macOS installer signing.
65+ - ` INST_CERT_PASSWORD ` : password for the Apple Developer Installer Certificate.
66+ Required for macOS installer signing.
67+
68+ ## Current build limitations
3069
3170The macOS packages will be code signed in the build if the relevant secrets and
3271ID variables are added to the GitHub repository. For public distribution the
@@ -44,3 +83,5 @@ Apache, Apache NetBeans and the Apache NetBeans logo are trademarks or registere
4483trademarks of the Apache Software Foundation. Java and OpenJDK are registered
4584trademarks of Oracle and/or its affiliates. All other trademarks are the property
4685of their respective holders and used here only for identification purposes.
86+
87+ [ github-macos ] : https://docs.github.com/en/actions/how-tos/deploy/deploy-to-third-party-platforms/sign-xcode-applications
0 commit comments