You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add SonarSource/ci-github-actions/config-gradle@v1 to macos_analyzers job
Without credentials, Gradle falls back to Gradle Plugin Portal and artifacts have different checksums than those recorded in gradle/verification-metadata.xml (repox normalizes POMs)
This PR adds repox credentials to the macOS Analyzers build and enables manual workflow triggering.
Main change: Adds the SonarSource/ci-github-actions/config-gradle@v1 action to configure Gradle with repository credentials. Without these credentials, Gradle falls back to the Gradle Plugin Portal, which publishes artifacts with different checksums than the internal repox repository. This causes verification metadata validation to fail. The repox repository normalizes POMs, avoiding this checksum mismatch.
Secondary change: Adds || github.event_name == 'workflow_dispatch' to allow manual triggering of the macOS build via GitHub Actions UI.
This mirrors the credentials fix already applied to cross_platform_analyzers in PR #226.
What reviewers should know
Key areas to review:
The config-gradle action is added directly before the build step (line 42). This is the standard placement and matches the pattern used in cross_platform_analyzers.
The action uses SonarSource/ci-github-actions/config-gradle@v1 — confirm this is the expected version and matches what's used elsewhere in the workflow.
The workflow_dispatch change is independent; it enables manual runs but does not affect the credentials flow.
Context for reviewers:
This is a security-related change (adds credential handling) but uses SonarSource's official GitHub Action, so credentials themselves are not embedded in the workflow YAML.
The checksum mismatch issue stems from differences in how POMs are normalized between repositories — this is a known issue when switching between artifact sources.
If you want to verify the pattern matches the earlier fix, check the cross_platform_analyzers job in the same workflow file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SonarSource/ci-github-actions/config-gradle@v1tomacos_analyzersjobgradle/verification-metadata.xml(repox normalizes POMs)cross_platform_analyzersin RUST-137 Add gradle/verification-metadata.xml for dependency verification #226