Skip to content

fix(ci): grant the wrapper the permissions the reusable declares - #95

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/hypatia-wrapper-permissions
Sep 21, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
fix/hypatia-wrapper-permissions

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Every run of this wrapper was startup_failure — the workflow never started, so the repository has never published a Hypatia check. That is the defect class of hyperpolymath/tropical-types#17: a gate (or a requirement) that names a context nothing publishes.

Cause: the Hypatia reusable workflow declares actions: read, contents: read and security-events: write, and a caller cannot start a called workflow unless its job grants at least what the called workflow declares. This wrapper did not grant actions: read.

Fix, minimal:

  • grant actions: read (at the job level where a job-level permissions: block overrides the workflow-level one);
  • pass secrets: inherit — the reusable consumes secrets.HYPATIA_SCAN_PAT || secrets.GITHUB_TOKEN.

The caller id, the pin and the rest of the job are untouched. Found by the caller-id standardisation sweep (same probe: read the run history, not the file).

The Hypatia reusable workflow declares `actions: read`, `contents: read` and
`security-events: write`. A caller job that does not grant at least what the
called workflow declares cannot start at all: every run of this wrapper was
`startup_failure`, so the repository published no Hypatia check — the defect
class of hyperpolymath/tropical-types#17 (a gate that names a context with no
publisher).

* grant `actions: read`
* pass `secrets: inherit` (the reusable consumes
  `secrets.HYPATIA_SCAN_PAT || secrets.GITHUB_TOKEN`)

No other change: the caller id, the pin, and the job body are untouched.
A job-level `permissions:` block replaces the workflow-level one for that job,
and the Hypatia reusable declares `actions: read`, `contents: read` and
`security-events: write`. This job granted only the latter two, so every run
was `startup_failure` and the repository published no Hypatia check — the
defect class of hyperpolymath/tropical-types#17.
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 42a82cc8-75d0-4723-941d-3bb63628189c

📥 Commits

Reviewing files that changed from the base of the PR and between 4f48bef and 532fc8c.

📒 Files selected for processing (1)
  • .github/workflows/hypatia-scan.yml

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 64573e1 into main Sep 21, 2026
3 checks passed
@hyperpolymath
hyperpolymath deleted the fix/hypatia-wrapper-permissions branch September 21, 2026 00:07
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.

1 participant