Repository navigation
GHA-353 Remove sonarcloud-core logic from update-analyzer action - #187
Merged
nils-werner-sonarsource merged 1 commit intoJul 13, 2026
Merged
Conversation
The SC- branch became unreachable after SQC integration moved to sonar-plugins-deployer; no workflow step calls update-analyzer with an SC- ticket anymore. update-analyzer now only accepts SONAR- keys. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Code Review ✅ ApprovedRemoves unreachable sonarcloud-core logic from the update-analyzer action and updates documentation and validation tests to reflect the new ticket-key requirements. No issues found. OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
yasen-pavlov-sonarsource
approved these changes
Jul 13, 2026
nils-werner-sonarsource
deleted the
nw/gha-353-remove-sqc-from-update-analyzer
branch
July 13, 2026 10:21
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Problem
update-analyzer/action.ymlstill branches onSC-*ticket keys to targetsonarcloud-coreand itsprivate/edition-sonarcloud/build.gradle. That branch is unreachable: SQC integration moved tosonar-plugins-deployerin a prior change, andautomated-release.yml'supdate-analyzersjob now only callsupdate-analyzerwith the SQS ticket key — the SQC step callsupdate-plugins-deployerinstead. Dead code left in an action that validates its own inputs is misleading to anyone reading the ticket-key description or error message.Approach
Favor the smallest diff that fully removes the dead branch and keeps docs/tests truthful to the new behavior.
plugin-artifacts-sqcinput fromautomated-release.ymltoo?automated-release.yml, notupdate-analyzer, and is out of scope here.test-update-analyzer.yml"Test Valid SC Ticket" step?sonarcloud-coreas "historical context" that would confuse a future reader."Invalid ticket format. Must start with SONAR-."— no added explanation of why SC- was removed, consistent with how the branch itself is just deleted without a deprecation comment.Implementation
update-analyzer/action.yml: removed theelif [[ "$TICKET_KEY" == SC-* ]]branch and itssonarcloud-coreenv vars, updated the error message andticket-key/action descriptions.update-analyzer/README.md: dropped all SC-/sonarcloud-core mentions to match..github/workflows/test-update-analyzer.yml: repurposed the SC-ticket test to assert rejection. No new abstractions or dependencies.Tests
SONAR-*still accepted (unchanged),SC-*now explicitly asserted as rejected (previously just asserted it didn't error, though vault-less CI already masked that).INVALID-123invalid-format test continues to cover the generic non-SONAR- rejection path.Test plan
update-analyzer/action.ymland.github/workflows/test-update-analyzer.yml(python3 -c "import yaml; yaml.safe_load(...)")actionlintrun on the test workflow file — cleanSC-/sonarcloud-corereferences in touched files — only the intentional rejection-test fixture remainsupdate-analyzeranymore (onlyupdate-plugins-deployerhandles SQC now)