mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-05-22 18:05:57 +00:00
Fix GPG signature verification on Windows by converting Windows-style paths to Unix-style paths that GPG expects. GPG on Windows (from Git for Windows) is a Unix tool that requires Unix-style paths. Issue: GPG was receiving Windows paths like C:\a\_temp\gpg-home and attempting to use them, resulting in malformed paths like /c/a/sonarqube-scan-action/C:\a\_temp\gpg-home and errors: - "keyblock resource: No such file or directory" - "can't connect to the dirmngr: No such file or directory" - "keyserver receive failed: No dirmngr" Solution: - Add convertToUnixPath() function to convert Windows paths to Unix-style (e.g., C:\a\_temp\gpg -> /c/a/_temp/gpg) - Apply conversion in tryImportKey() and runGpgVerify() before calling GPG - No-op on non-Windows platforms - Add comprehensive tests for path conversion This ensures GPG signature verification works on all platforms (Linux, macOS, and Windows). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| core-DpWEmnbG.js | ||
| core-DpWEmnbG.js.map | ||
| exec-BTlTa8sL.js | ||
| exec-BTlTa8sL.js.map | ||
| exec-zlpfwmpH.js | ||
| exec-zlpfwmpH.js.map | ||
| index.js | ||
| index.js.map | ||
| install-build-wrapper.js | ||
| install-build-wrapper.js.map | ||