Repository navigation
feat: implement issue #505 — SonarCloud: shell script hygiene - #527
Conversation
This comment has been minimized.
This comment has been minimized.
Dev-Lead — waiting on PR blockers (intent: review-changes)PR: #527 |
|
Note @don-petry I reviewed this PR and no code changes were needed, but I can't mark it done yet: required checks |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
There was a problem hiding this comment.
Code Review
This pull request updates several bash scripts in the .github/scripts/ directory to use double brackets [[ ... ]] instead of single brackets [ ... ] for conditional checks, ensuring safer and more robust bash evaluations. There are no review comments, and I have no additional feedback to provide.
This comment has been minimized.
This comment has been minimized.
|
SonarCloud Quality Gate passed; no findings to act on. |
This comment has been minimized.
This comment has been minimized.
Dev-Lead — fix-reviews (no-changes)Agent reasoning |
|
No description provided. |
|
No description provided. |
|
SonarCloud Quality Gate passed on the latest head; no findings to act on. |
Dev-Lead — fix-reviews (no-changes)Agent reasoning |
|
No description provided. |
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-10-14T20:25:10Z. |
|
No description provided. |
This comment has been minimized.
This comment has been minimized.
|
Re-read the current Codex summary. It reports the review as Completed with no findings, so there is nothing to act on. |
|
Re-read the current CodeAnt body. It assesses the PR as Low Risk and reports no findings, so no action is needed. |
Dev-Lead — fix-reviews (no-changes)Agent reasoning |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No description provided. |
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-10-14T22:45:25Z. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No description provided. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No description provided. |
|
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-10-14T23:24:17Z. |
|
No description provided. |
|
No description provided. |
|
The Linked Issues check requested post-change SonarCloud results showing zero |
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: LOW
Reviewed commit: 9c14a284283b14eb3ffabae73ddd7b9f5460f7fc
Review mode: triage-approved (single reviewer)
Summary
Pure syntactic hygiene fix: 8 single-bracket [ ... ] string tests replaced with [[ ... ]] across 5 .github/scripts/*.sh files to clear SonarCloud rule shelldre:S7688. All 5 scripts use the #!/usr/bin/env bash shebang, so [[ is valid. Every converted test is a -z/-n check on a quoted variable, so behavior is unchanged. Triage's low-risk assessment is confirmed.
Linked issue analysis
Closes #505 (SonarCloud: shell script hygiene). The issue lists 8 S7688 findings: apply-code-quality-ruleset.sh (3), apply-pr-quality-ruleset.sh (2), apply-repo-settings.sh (1), apply-secret-scanning-ai-detection.sh (1), apply-secret-scanning-non-provider-patterns.sh (1). The diff changes exactly those 8 conditionals in exactly those files (3+2+1+1+1). It uses real fixes rather than NOSONAR suppressions, makes no behavior change, and the SonarCloud Quality Gate passes with 0 new issues. All acceptance criteria are met.
Findings
- No blocking findings.
- Two of the touched files configure secret scanning and several tests check
GH_TOKEN, but only the syntax of a presence check changed. Token handling, API payloads and logic are untouched, so the auth/secrets HIGH signal does not apply. - The
run_secret_scanningMCP tool is not available in this run. The gitleaks secret scan passed, and the diff adds no literals. - No unresolved review threads. Gemini, CodeRabbit, CodeAnt and Codex reported no actionable findings, and there are no unanswered questions from human reviewers.
CI status
Green on the code-quality checks: bats (.github/scripts), SonarCloud / SonarCloud Code Analysis (Quality Gate passed), CodeQL / Analyze (actions), Secret scan (gitleaks), AgentShield and dependency-audit / Detect ecosystems all passed. Ecosystem audits and Frontend/Backend CI were skipped because they don't apply. Four jobs show cancelled: dev-lead / dispatch, dev-lead / ci-relay, dev-lead / resume and pr-review / review. All four belong to a single superseded automation run (38646783321), are not build or test checks, and do not reflect on the code.
Reviewed automatically by the PR-review agent (single-reviewer mode: opus 5.5 [opus 4.8, opus 4.7]). Reply if you need a human review.
|
pr-review approved on PARTIAL advisory evidence: 3/5 required advisory bots reported before the gate's head-age-timeout fallback proceeded. Recorded for the miss-rate metric (#1596). |



Problem
SonarCloud: shell script hygiene
From the issue: 8 open SonarCloud finding(s) in
petry-projects/markets, worst severity MAJOR. Generated by the org SonarCloud Audit.Risk
Low — changes automation shell logic under scripts/, covered by shellcheck (--severity=warning) and the bats suite.
Test plan
No test files were added or updated. Verification:
bash scripts/dev-lead-lint.sh(shellcheck --severity=warning) ran pre-commit; the existing CI (bats + lint) guards the change.Rollback
Revert this PR. No non-revertible side effects (no tags, migrations, or external state).
Monitoring
This PR's Lint (shellcheck) and bats checks show pass/fail; watch subsequent dev-lead / pr-review runs for behavioral regressions.
Closes #505
Summary by CodeRabbit