Code-sign CLI Windows binaries before release#1519
Code-sign CLI Windows binaries before release#1519ChiragAgg5k wants to merge 1 commit intomasterfrom
Conversation
Greptile SummaryThis PR inserts a Windows binary code-signing stage into the CLI publish workflow using SignPath. Unsigned executables are uploaded as a GitHub Actions artifact, submitted to SignPath for signing, replaced in the
Confidence Score: 5/5Safe to merge; the signing integration is structurally correct and the SignPath action is pinned to an immutable SHA. The new signing steps are well-structured: the SignPath action is pinned to a commit SHA, the binary-replacement logic uses set -euo pipefail and explicit existence checks, and the workflow correctly fails closed if signing is rejected. The two findings are a missing retention-days on the unsigned artifact and a documentation naming discrepancy between the PR description and the actual secret names, neither of which affects whether signing or publishing works correctly when the repository is properly configured. No files require special attention; the single changed workflow file is straightforward. Important Files Changed
Reviews (5): Last reviewed commit: "Code-sign CLI Windows binaries before re..." | Re-trigger Greptile |
8b1995c to
2c9e27f
Compare
|
Addressed Greptile's security comments in 2c9e27f:\n\n- pinned signpath/github-action-submit-signing-request to commit b9d91eadd323de506c0c81cf0c7fe7438f3360fd instead of the mutable v2 tag\n- tightened signature verification by requiring SIGNPATH_TRUSTED_CERTIFICATE_PEM for osslsigncode -CAfile and SIGNPATH_EXPECTED_SIGNER_SUBJECT for signer identity matching |
dfc7c46 to
9f063dc
Compare
9f063dc to
c0f79a1
Compare
Summary
Configuration required
WINDOWS_SIGNING_API_TOKENrepository secretWINDOWS_SIGNING_ORGANIZATION_IDrepository variableWINDOWS_SIGNING_POLICY_SLUGrepository variable, e.g.test-signingWINDOWS_SIGNING_PROJECT_SLUG,WINDOWS_SIGNING_ARTIFACT_CONFIGURATION_SLUGTests
docker run --rm -v $(pwd):/app -w /app php:8.3-cli php example.php clicomposer lint-twig