fix: Dynamic discovery of of signtool.exe#1328
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe CI workflow for Windows code signing in .github/workflows/ci_release.yml was updated to dynamically discover signtool.exe under Program Files (x86)\Windows Kits via recursive search, store its path in a variable, and use that variable for both signing and verification commands. Other parameters remain unchanged. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as GitHub Actions
participant Runner as Windows Runner
participant FS as Filesystem
participant ST as signtool.exe
Dev->>Runner: Start windows-sign job
rect rgb(240,245,255)
note over Runner: Discover signtool.exe path (dynamic)
Runner->>FS: Recursively search "C:\Program Files (x86)\Windows Kits\...\signtool.exe"
FS-->>Runner: Return found path or none
alt Path found
Runner->>Runner: SIGNTOOL="...\\signtool.exe"
else Not found
Runner-->>Dev: Fail job (missing signtool)
end
end
rect rgb(245,255,245)
note over Runner,ST: Use discovered path
Runner->>ST: Sign artifact with existing parameters
ST-->>Runner: Signing result
Runner->>ST: Verify signed artifact
ST-->>Runner: Verification result
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Dynamic discovery of of signtool.exe
Fixes # (IEP-1647)
Type of change
Please delete options that are not relevant.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Dependent components impacted by this PR:
Checklist
Summary by CodeRabbit