sonarqube-scan-action/dist
Claire Villard 7a11667fa2 SQSCANGHA-140 Fix GPG path handling for Windows
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>
2026-04-27 19:06:35 +02:00
..
core-DpWEmnbG.js SQSCANGHA-134 Upgrade the libraries to latest version (#227) 2026-04-14 15:21:19 +02:00
core-DpWEmnbG.js.map SQSCANGHA-134 Upgrade the libraries to latest version (#227) 2026-04-14 15:21:19 +02:00
exec-BTlTa8sL.js SQSCANGHA-107 Migrate install-build-wrapper 2025-09-18 10:38:53 +02:00
exec-BTlTa8sL.js.map SQSCANGHA-107 Migrate install-build-wrapper 2025-09-18 10:38:53 +02:00
exec-zlpfwmpH.js SQSCANGHA-140 Implement OpenPGP signature verification for scanner downloads 2026-04-27 17:54:16 +02:00
exec-zlpfwmpH.js.map SQSCANGHA-140 Implement OpenPGP signature verification for scanner downloads 2026-04-27 17:54:16 +02:00
index.js SQSCANGHA-140 Fix GPG path handling for Windows 2026-04-27 19:06:35 +02:00
index.js.map SQSCANGHA-140 Fix GPG path handling for Windows 2026-04-27 19:06:35 +02:00
install-build-wrapper.js SQSCANGHA-140 Implement OpenPGP signature verification for scanner downloads 2026-04-27 17:54:16 +02:00
install-build-wrapper.js.map SQSCANGHA-140 Implement OpenPGP signature verification for scanner downloads 2026-04-27 17:54:16 +02:00