Repository navigation
docs(coverage): draft public-findings coverage matrix - #1063
Conversation
First-pass matrix of findings published by GitHub, Sonar, CodeRabbit, Scorecard and linters, with hypatia detection and fix status per row. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Build Test Images failure is not from this PR. This PR only adds
I have not confirmed whether Generated by Claude Code |
…segv owner-only Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
|
Rust Dependency Audit failure is not from this PR either.
It also lists four allowed warnings (unmaintained Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f36d5f7d00
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "sev": "error", | ||
| "problem": "'API rate limit exceeded' / secondary rate limit 403 in setup steps (gh, actions/checkout, setup-*)", | ||
| "fix": "pass github.token via env; retry with backoff; reduce parallelism", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark draft detectors as unassessed
When the matrix is used to calculate coverage or select remediation routes, this row is counted as implemented even though its only evidence is a draft from issue #1064. A repo-wide search of the reviewed parent finds no Hypatia.CiFailureTriage module or api_rate_limit classifier; the same problem affects the other rows whose evidence names that draft. The README caveat does not correct the machine-readable detect value, so these rows should remain unassessed until their detector is present and verified.
Useful? React with 👍 / 👎.
| "evidence": "hypatia#1064 upstream_artifact_missing", | ||
| "url": "", | ||
| "seed": 0, | ||
| "route": "upstream" |
There was a problem hiding this comment.
When a consumer validates or dispatches from the route enum documented in README.adoc, this row supplies the unsupported value upstream; every other row uses one of first-line, referral, owner-only, or unrouted. Either map this case to a documented route or add upstream to the route contract and define its handling, otherwise routing this finding requires an undocumented special case.
Useful? React with 👍 / 👎.
| "source": "github-actions", | ||
| "id": "permissions-missing", | ||
| "sev": "warning", | ||
| "problem": "no `permissions:` so token has default write", |
There was a problem hiding this comment.
Account for configured token defaults
When a workflow omits permissions:, its token uses the repository or organization default rather than necessarily receiving write access. New personal repositories default to restricted read access, while organization repositories inherit their configured setting, as described in GitHub's Actions settings documentation. Keeping the explicit-permissions policy is reasonable, but this problem statement will misclassify restricted repositories and should describe the actual risk as reliance on an external default.
Useful? React with 👍 / 👎.
| "sev": "warning", | ||
| "problem": "missing/wrong concurrency group; duplicate runs (push+pull_request)", | ||
| "fix": "scope triggers, add group", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark concurrency coverage as partial
When a workflow uses block-style push and pull_request triggers and already contains an ineffective concurrency group such as one keyed by github.sha, neither cited detector covers this row: the D-BURN section of scripts/ci-health/detect.sh matches only the exact inline on: [push, pull_request] form, while wh007_missing_concurrency/1 stops as soon as any concurrency: key exists. Such workflows still meet the stated “wrong concurrency group” problem but produce no finding, so detected overstates coverage.
Useful? React with 👍 / 👎.
| "sev": "varies", | ||
| "problem": "OpenSSF Scorecard check SAST", | ||
| "fix": "add CodeQL/Sonar", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Do not claim SAST detection from secret-scanner checks
When a repository has Gitleaks or TruffleHog but no SAST workflow, the cited ScorecardCompliance.check_vulnerability_scanning/1 returns no finding because it only searches paths for secret-scanner.yml, gitleaks, or trufflehog; it never checks for CodeQL, Sonar, or another SAST tool. Therefore the implementation cannot detect the Scorecard SAST gap described by this row, and the machine-readable status should not be detected until an actual SAST check is used.
Useful? React with 👍 / 👎.
| "evidence": "branch_protection.ex", | ||
| "url": "https://github.com/ossf/scorecard/blob/main/docs/checks.md", | ||
| "seed": 0, | ||
| "route": "first-line" |
There was a problem hiding this comment.
Route branch-protection changes to the owner
When this finding is emitted, first-line sends it to the squabbler autofix path even though branch_protection.ex explicitly states that all BP rules require admin scope and are owner-side, advisory, and not bot-fixable. Enabling or changing repository branch protection cannot be accomplished by a normal code PR, so this row should use owner-only rather than advertising an automated first-line repair.
Useful? React with 👍 / 👎.
| "sev": "varies", | ||
| "problem": "OpenSSF Scorecard check Dependency-Update-Tool", | ||
| "fix": "add dependabot", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark dependency-tool coverage as partial
When a repository uses Renovate instead of Dependabot, Scorecard considers the dependency-update requirement satisfied, but ScorecardCompliance.check_dependency_tool/2 recognizes only .github/dependabot.yml or .yaml and reports a violation. The Scorecard check definition explicitly supports both Dependabot and Renovate, so this implementation does not fully reproduce the check and should not be recorded as detected.
Useful? React with 👍 / 👎.
| "sev": "varies", | ||
| "problem": "OpenSSF Scorecard check Pinned-Dependencies", | ||
| "fix": "pin by hash", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark pinned-dependency coverage as partial
When an unpinned build dependency appears in a Dockerfile or shell script, the cited PinIntegrity module cannot report it because it parses GitHub Actions uses: sites and their lockfile metadata only. The Scorecard Pinned-Dependencies check also scans Dockerfiles and shell scripts, so action-pin coverage alone leaves supported inputs undetected and this row should be partial.
Useful? React with 👍 / 👎.
Mark draft #1064 detectors unassessed, downgrade overclaimed rows to partial/none, route branch protection owner-only, document the upstream route. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
|
This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins. |
…plit rows Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
|
This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins. |
|
This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c04fcedef6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "sev": "error", | ||
| "problem": "pin names a commit that is the repo's own bump SHA, so every bump invalidates the next", | ||
| "fix": "propagate SHA via sha_bump_propagation; pin to released tag commit", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark self-SHA leaf detection as unimplemented
When a workflow pins the repository's own bump commit but that SHA is not already denylisted, mislabelled, stale, or inconsistent with a lockfile, neither cited module emits this finding: ShaBumpPropagation reacts to changes in known upstream reusables, while PI001–PI005 cover denylisted pins, labels, moving refs, lock divergence, and stale pins. Coverage consumers will therefore treat a detector that does not exist as implemented; keep this row none or unassessed until a self-SHA comparison is added.
Useful? React with 👍 / 👎.
| "sev": "varies", | ||
| "problem": "OpenSSF Scorecard check Security-Policy", | ||
| "fix": "add SECURITY.md", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark Security-Policy coverage as partial
When SECURITY.md exists but lacks reporting links, substantive text, or disclosure guidance, Hypatia's cited RSR detector passes because criterion 2.1.3 checks only file presence, while the Scorecard Security-Policy check grades those content requirements separately. Such repositories can still receive a reduced Scorecard result without a Hypatia finding, so detected overstates this coverage.
Useful? React with 👍 / 👎.
| "sev": "varies", | ||
| "problem": "OpenSSF Scorecard check Token-Permissions", | ||
| "fix": "least privilege", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark Token-Permissions coverage as partial
When a workflow defines permissions only on every job but omits a top-level read-only block, the Scorecard Token-Permissions check deducts a point, but check_least_privilege/1 only matches the exact strings permissions: write-all and permissions: read-all; it does not detect this configuration. The matrix should record partial rather than complete detection.
Useful? React with 👍 / 👎.
| "sev": "varies", | ||
| "problem": "OpenSSF Scorecard check Vulnerabilities", | ||
| "fix": "fix advisories", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark OSV vulnerability coverage as partial
When OSV reports a vulnerable dependency that is not exposed through GitHub Dependabot alerts—for example because Dependabot alerts are disabled or the affected input is outside its coverage—the cited module returns no finding because it only queries the Dependabot API. The Scorecard Vulnerabilities check uses OSV directly, so Dependabot ingestion cannot justify complete detection of this row.
Useful? React with 👍 / 👎.
| "sev": "varies", | ||
| "problem": "expression injection in workflow", | ||
| "fix": "use env var intermediate", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark CodeQL code-injection coverage as partial
When attacker-controlled event data is interpolated into an actions/github-script with.script body, the CodeQL query reports code injection, but wh001_template_injection/1 examines only run: shell blocks. This supported sink therefore produces no Hypatia finding, so the row should be partial rather than detected.
Useful? React with 👍 / 👎.
| "evidence": "scorecard CSA005/6", | ||
| "url": "https://github.com/ossf/scorecard/blob/main/docs/checks.md", | ||
| "seed": 0, | ||
| "route": "first-line" |
There was a problem hiding this comment.
Route Code-Review remediation to the owner
When this row is dispatched, first-line advertises a squabbler autofix even though improving the Scorecard Code-Review check requires human approvals, recruiting reviewers, or changing repository protection settings. None of those can be completed by a normal code autofix, so this row should be owner-only rather than entering the first-line repair path.
Useful? React with 👍 / 👎.
| "evidence": "CSA005", | ||
| "url": "https://github.com/ossf/scorecard/blob/main/docs/checks.md", | ||
| "seed": 0, | ||
| "route": "first-line" |
There was a problem hiding this comment.
Do not route Maintained findings to autofix
When a mature repository receives a low Maintained score, the Scorecard documentation says there is no project remediation and that consumers must judge the repository's activity; creating artificial commits is not a valid code fix. Routing this row to first-line therefore sends an informational, human-judgement finding to an autofix path, so it should be owner-only or referral.
Useful? React with 👍 / 👎.
| "sev": "warning", | ||
| "problem": "`::set-output`/`::save-state` deprecated", | ||
| "fix": "write to $GITHUB_OUTPUT/$GITHUB_STATE", | ||
| "detect": "detected", |
There was a problem hiding this comment.
Mark deprecated-command coverage as partial
When ::set-output or ::save-state is emitted by a repository script, JavaScript action, Docker action, or composite action outside .github/workflows, the runner still produces the deprecation warning because workflow commands can be used in workflows or action code, but WH010 scans only files returned by workflow_files/1. Those supported sources are missed, so this row should be partial rather than detected.
Useful? React with 👍 / 👎.
| "evidence": "rsr_conformance.ex (no licence edits in scope)", | ||
| "url": "https://github.com/ossf/scorecard/blob/main/docs/checks.md", | ||
| "seed": 0, | ||
| "route": "first-line" |
There was a problem hiding this comment.
Route license selection to the owner
When a repository has no license, first-line asks the autofix path to add one even though selecting the license determines how the project may legally be used and the row's own evidence says licence edits are outside scope. The Scorecard remediation likewise starts with determining which license applies, so this decision should be owner-only rather than an automated repair.
Useful? React with 👍 / 👎.
| "evidence": "", | ||
| "url": "https://github.com/ossf/scorecard/blob/main/docs/checks.md", | ||
| "seed": 0, | ||
| "route": "first-line" |
There was a problem hiding this comment.
Route webhook-secret changes to the owner
When Scorecard reports an unauthenticated webhook, remediation requires configuring a secret in repository webhook settings and usually in the receiving service; neither change can be made by a normal code PR. The Scorecard Webhooks check explicitly concerns tokens configured on repository webhooks, so this row should use owner-only instead of the first-line autofix route.
Useful? React with 👍 / 👎.
## Summary Follow-up to #1063. Docs only: `docs/reports/coverage-matrix/{matrix.json,README.adoc}`. No rule, CI or code changes. - Adds `sq_id` to the rows that overlap a cicd-squabbler FIX/ACT rule (ADR 0004): 4 full, 4 partial overlaps. - Three route conflicts resolved in the squabbler's favour (ADR 0003): `pull-request-target-checkout`, Scorecard Dangerous-Workflow and `pages-build-failure` are now `owner-only` (SQ-OWN-03, SQ-OWN-01). - Adds 18 squabbler-only rows keyed by SQ id (estate-specific, not public-platform rules). Hypatia detection for them is `unassessed`. - Adds a `referral` row for tag-keyed `actions.lock` records refused by the standards pin-contract gate (hypatia#1090, draft). - CodeRabbit and Codex rate-limit/credit rows are now route `noise` (ruling R7). - README documents the routes `noise` and `upstream` and the `rerun` fix status. Agreed with the Rule reconciliation thread (experiment owner) and sent to Tsunami-breaker before opening. The 4 detection gaps (concurrency, Dockerfile/shell pins, Renovate, SAST) are the experiment owner's first cases. ## Status: DRAFT - Detection statuses still come from reading code, not fixtures; rows citing #1064/#1065/#1090 stay `unassessed`. - Not for auto-merge; leave for review. - Known red checks on this PR (`cli/` container build, `quinn-udp` cargo-audit, and their rollups) are also red on `main` and are not caused by this diff. ## Test plan - [ ] Verify `partial` and `unassessed` rows with offline fixtures (experiment owner) - [ ] Re-key ids to the reconciliation thread's `<domain>/<name>` scheme as they land --- _Generated by [Claude Code](https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p)_ --------- Co-authored-by: Claude <[email protected]>
## Summary Follow-up to #1063 and #1091. Docs only: edits `docs/reports/coverage-matrix/matrix.json`. No rule, CI or code changes. Codex posted three rounds of review findings on #1091; the first was fixed before merge. This PR carries the other corrections. Each was checked against `lib/rules` and the replay tests before changing anything. - Split `SQ-GEN-03` (FIX, WF029) from `SQ-NOI-01` (noise) into separate rows. - Credit Hypatia's existing detectors: `repository_map_stale` (SQ-GEN-01), `kyaml_format` (SQ-GEN-04), `external_host_unreachable` and `api_server_error` (SQ-RUN-03), `scan_range_missing_commit` (SQ-RUN-04), `github_state_unreadable` (SQ-RUN-06), `token_invalid`. - `container_build_toolchain_drift` is `partial` (generic `compile_error` classifies the real log but not the cause). - Scorecard Dangerous-Workflow goes back to its script-injection fix; only the untrusted-checkout subtype is owner-only (SQ-OWN-03). - SQ-RUN ACT overlaps use `rerun` instead of `none`/`recipe`. - `token_invalid` and `scanner_pin_drift` are owner-only with `escalate` status, not a recipe. - The merge-ref race is split: merged/closed PR is noise (SQ-NOI-02); an open PR is a referral. Done at the owner's direction (relayed by the hub). Experiment owner, Extended Hypatia and Tsunami-breaker were told before opening. ## Status: DRAFT - The owner merges; not for auto-merge. - Detection statuses still come from code and fixture reading, not live reruns; rows citing drafts (#1090) stay `unassessed`. - Known red checks on `main`, if any, are not caused by this diff. ## Test plan - [ ] `matrix.json` parses and has 150 rows - [ ] Spot-check the split rows (`always-after-cancel`, `merge-ref-race-open-pr`) --- _Generated by [Claude Code](https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p)_ --------- Co-authored-by: Claude <[email protected]>



Summary
First-pass matrix of findings published by GitHub (Actions annotations, CodeQL, secret scanning, Dependabot, rulesets), Scorecard, SonarCloud, Codecov, CodeRabbit, Codex and linters. For each row it records source, id, severity, problem, published fix, hypatia detection status, fix status, gap reason, and a route (first-line / referral / owner-only, per cicd-squabbler ADR 0003).
Docs only:
docs/reports/coverage-matrix/matrix.jsonandREADME.adoc. No rule, CI or code changes. No licensed text copied; ids, titles, severity, problem, fix and source URL only.Status: DRAFT
lib/rulesandscripts/ci-health, not from fixtures;partialrows need a fixture.Test plan
partialrows with offline fixtures<domain>/<name>schemeGenerated by Claude Code