Skip to content

Commit fe29b5a

Browse files
ci(sonar): exclude hypatia wrapper from analysis (required secrets: inherit) (#40)
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. Claude-Session: https://claude.ai/code/session_01AHygjxRyU3WwmXEhA9KF5L Co-authored-by: Claude <noreply@anthropic.com>
1 parent f3a9da0 commit fe29b5a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

sonar-project.properties

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# // Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
2+
# SPDX-License-Identifier: MPL-2.0
3+
# SonarCloud / SonarQube Cloud analysis configuration.
4+
#
5+
# Exclude the Hypatia workflow wrapper from analysis. Its only Sonar
6+
# finding is the `secrets: inherit` Security Hotspot, and that construct
7+
# is REQUIRED by hyperpolymath/standards hypatia-scan-reusable.yml: the
8+
# reusable consumes ${{ secrets.HYPATIA_DISPATCH_PAT }} but does not
9+
# declare it as a workflow_call secret, so `secrets: inherit` is the only
10+
# way to pass it through (needed by the gitbot-fleet Phase 2 learning
11+
# submission). The file is a thin, SHA-pinned wrapper with no other code
12+
# to analyse, so excluding it loses no meaningful coverage.
13+
#
14+
# NOTE: this repo uses SonarCloud Automatic Analysis, where settings
15+
# configured in the SonarCloud UI take precedence over this file and
16+
# file-based exclusions do not always clear the Quality Gate. If the gate
17+
# still reports the hotspot after this lands, mark it "Safe" on the
18+
# SonarCloud Security Hotspots page (or deactivate the rule in the Quality
19+
# Profile) as the reliable backstop.
20+
sonar.exclusions=.github/workflows/hypatia-scan.yml

0 commit comments

Comments
 (0)