Skip to content

SQSCANGHA-205 Bump scanner-cli version to 8.5.0.16571 - #312

Merged
alban-auzeill merged 2 commits into
masterfrom
alban/update-scanner-cli
Nov 23, 2026
Merged

alban-auzeill merged 2 commits into
masterfrom
alban/update-scanner-cli

Conversation

@alban-auzeill

@alban-auzeill alban-auzeill commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary by Gitar

  • Dependency update:
    • Bumped scanner CLI version from 8.4.0.16527 to 8.5.0.16571 in sonar-scanner-version
    • Updated download URLs and SHA checksums for all platforms in sonar-scanner-version
    • Updated default version in action.yml to 8.5.0.16571
  • Key verification:
    • Imports the SonarSource public key from binaries.sonarsource.com before keyservers in gpg-verification.js
    • Falls back to keyservers only when the published key cannot be downloaded or does not verify the signature

This will update automatically on new commits.

@alban-auzeill
alban-auzeill requested a review from a team as a code owner November 20, 2026 17:54
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod Bot changed the title Bump scanner-cli version to 8.5.0.16571 SQSCANGHA-205 Bump scanner-cli version to 8.5.0.16571 Nov 20, 2026
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

SQSCANGHA-205

@datadog-sonarsource

datadog-sonarsource Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: fbc998c | Docs | Give us feedback!

@sonarqubecloud

Copy link
Copy Markdown

Comment thread src/main/gpg-verification.js Resolved
@gitar-bot

gitar-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk 1 closed / 1 findings

The published-key-first signature flow changes scanner-binary integrity verification; a flaw in key handling could cause tampered binaries to be accepted.

Bumps scanner-cli to 8.5.0.16571 with updated download URLs and SHA checksums, and imports the SonarSource public key from binaries.sonarsource.com before falling back to keyservers. Consider logging the published-key verification error in src/main/gpg-verification.js so a tampered artifact on a keyserver-unreachable runner surfaces as a signature failure rather than a keyserver connectivity error.

✅ 1 closed
Closed: Quality: Published-key verify error is dropped, hiding real signature failure

📄 src/main/gpg-verification.js:66-73 📄 src/main/gpg-verification.js:100-108
verifyWithPublishedKey catches the runGpgVerify error without logging it (gpg-verification.js:100-108). It logs an info message saying the signature "may have been made by a retired signing subkey" and returns false. If the file really was tampered with (BAD signature) and the keyservers can't be reached, which is common on locked-down self-hosted runners now that the published key handles the normal path, importSonarSourceKey throws "Failed to import SonarSource public key from all keyservers" instead. The user then sees a keyserver connectivity error, and the actual "GPG signature verification failed - file may be corrupted or tampered" result never appears in the logs. Suggested fix: keep the first verification error and include it in the log. Also attach it to any error thrown on the keyserver fallback path, so a tampered artifact still shows up as a signature failure.

Verification Rules 2/2 met PRs 1 inspected

Functional validation No results

Rules 2 passed 3 not applicable

✅ Internal artifact registries
✅ Repository license compliance

Broader impact PRs 1 inspected
Cross-PR 1 PR inspected 0 open impacts

PR 310: Update dependency rollup to v4.68.3 Inspected

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@alban-auzeill
alban-auzeill merged commit 70bad23 into master Nov 23, 2026
82 checks passed
@alban-auzeill
alban-auzeill deleted the alban/update-scanner-cli branch November 23, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants