Skip to content

ci(sonar): exclude hypatia wrapper from analysis#40

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/pensive-cerf-iacodk
Jun 24, 2026
Merged

ci(sonar): exclude hypatia wrapper from analysis#40
hyperpolymath merged 1 commit into
mainfrom
claude/pensive-cerf-iacodk

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Adds sonar-project.properties excluding .github/workflows/hypatia-scan.yml from SonarCloud analysis. Follow-up to the merged #35.

After #35 (the Hypatia reusable-workflow conversion) merged, its single SonarCloud finding — the secrets: inherit Security Hotspot — now lives on main and will keep failing the Quality Gate on future PRs. That construct is required: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml consumes HYPATIA_DISPATCH_PAT but doesn't declare it as a workflow_call secret, so secrets: inherit is the only way to pass it (for the gitbot-fleet Phase 2 learning submission). It's a reviewed-and-accepted hotspot, not a vulnerability.

The wrapper is a thin, SHA-pinned file with no other code to analyse, so excluding it loses no meaningful coverage.

⚠️ Important caveat — this may not be sufficient on its own

This repo uses SonarCloud Automatic Analysis (GitHub App; no CI scanner step, no prior config file). Under Automatic Analysis, UI-configured settings take precedence and there are documented cases where a repo-file sonar.exclusions does not clear the Quality Gate. I can't verify the effect from here (the Sonar API is auth-walled).

Reliable backstop (server-side, ~1 min): mark the secrets: inherit hotspot "Safe" on the SonarCloud Security Hotspots page, or deactivate the rule in the Quality Profile / drop the "Security Hotspots Reviewed" condition from the Quality Gate. Per our agreement, you're doing this UI action; this PR is the best-effort repo-config half.

Type of change

  • 🔧 Build / CI / tooling

🤖 Generated with Claude Code

https://claude.ai/code/session_01AHygjxRyU3WwmXEhA9KF5L


Generated by Claude Code

…nherit)

The hypatia-scan.yml wrapper's only SonarCloud finding is the
`secrets: inherit` Security Hotspot, which is required by
hyperpolymath/standards hypatia-scan-reusable.yml — the reusable consumes
HYPATIA_DISPATCH_PAT but does not declare it as a workflow_call secret, so
`secrets: inherit` is the only way to pass it through (gitbot-fleet Phase 2).

Add sonar-project.properties excluding the thin, SHA-pinned wrapper from
analysis (it has no other code to scan).

NOTE: this repo uses SonarCloud Automatic Analysis, where UI settings take
precedence and file-based exclusions may not clear the Quality Gate; marking
the hotspot "Safe" in the SonarCloud UI is the reliable backstop.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AHygjxRyU3WwmXEhA9KF5L
@hyperpolymath
hyperpolymath marked this pull request as ready for review June 24, 2026 19:27
@hyperpolymath
hyperpolymath merged commit fe29b5a into main Jun 24, 2026
10 of 11 checks passed
@hyperpolymath
hyperpolymath deleted the claude/pensive-cerf-iacodk branch June 24, 2026 19:27
@sonarqubecloud

Copy link
Copy Markdown

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