nightly: forward the thirteen signing secrets the sign steps actually read

The caller forwarded fifteen: the thirteen environment names plus the optional Windows PFX pair. The PFX
pair is optional at runtime (the signer accepts the six AZURE_* values when it is absent), and no app's
release environment holds it, so forwarding it does nothing. It also puts the caller outside the
reviewed set: the settings closure derives its allowlist from the app's targets, which is thirteen for a
Linux/macOS/Windows app, and refuses an extra name.

This forwards exactly the thirteen and trims the app's own SIGNER_SECRETS allowlist to match. The callee
keeps declaring all fifteen, since extra declarations are harmless and it only checks for missing ones.
This commit is contained in:
skylartaylor
2026-11-26 16:57:42 +01:00
parent 404c71b9c3
commit 05c5463efb
2 changed files with 1 additions and 4 deletions
-2
View File
@@ -50,8 +50,6 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
+1 -2
View File
@@ -13,8 +13,7 @@ ROOT = Path(__file__).resolve().parents[1]
# Exactly the secrets the nightly sign steps read; the signer caller may forward these and no others.
SIGNER_SECRETS = {
"LINUX_SIGNING_KEY", "APPLE_CERTIFICATE", "APPLE_CERTIFICATE_PASSWORD", "KEYCHAIN_PASSWORD",
"APPLE_ID", "APPLE_PASSWORD", "APPLE_TEAM_ID", "WINDOWS_CERTIFICATE",
"WINDOWS_CERTIFICATE_PASSWORD", "AZURE_TENANT_ID", "AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET",
"APPLE_ID", "APPLE_PASSWORD", "APPLE_TEAM_ID", "AZURE_TENANT_ID", "AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET",
"AZURE_SIGNING_ENDPOINT", "AZURE_SIGNING_ACCOUNT", "AZURE_CERT_PROFILE",
}
INSTALLED_POLICY = ROOT / ".github/nightly-signing-policy.json"