Skip to content

fix(ci): stop the counts gate turning main red over a missing secret - #89

Merged
acamarata merged 1 commit into
mainfrom
fix/counts-workflow-mode-b
Sep 11, 2026
Merged

acamarata merged 1 commit into
mainfrom
fix/counts-workflow-mode-b

Conversation

@acamarata

Copy link
Copy Markdown
Contributor

The cross-repo job exit 1'd when PLUGINS_PRO_CHECKOUT_TOKEN was absent. That secret is owner-gated and does not exist, so the job has failed on every push to main since it landed in #88.

A permanently-red main hides real failures rather than catching them, so this adopts the Mode A / Mode B shape registry-check.yml already uses:

  • With the secret (Mode A): unchanged. Regenerate counts.json, diff against the committed copy, fail on drift.
  • Without it (Mode B): state plainly that the pro side was not verified and the free side was, then stop. Never a silent skip.

The gate that matters is untouched. scripts/plugin-counts.sh still exits 1 rather than emit free-only counts, so a partial artifact can never be generated or published. Verifying half is legitimate; publishing half is not.

Provisioning PLUGINS_PRO_CHECKOUT_TOKEN (org-level Dependabot/Actions secret, scoped read on nself-org/plugins-pro) switches this to Mode A automatically.

The cross-repo job exit 1'd when PLUGINS_PRO_CHECKOUT_TOKEN was absent. That
secret is owner-gated and does not exist, so the job failed on every push to
main from the moment it landed. A permanently-red main hides real failures
instead of catching them, which is worse than the gap it was flagging.

Adopts the Mode A / Mode B shape registry-check.yml already uses. With the
secret, counts.json is regenerated and diffed against the committed copy as
before. Without it, the job says plainly that the pro side was not verified and
that the free side was, and stops. It never skips silently.

The case that actually matters is untouched: scripts/plugin-counts.sh still
exits 1 rather than emit free-only counts, so a partial artifact can never be
generated or published. Verifying half is fine; publishing half is not.
@acamarata
acamarata merged commit 934384e into main Sep 11, 2026
28 checks passed
@acamarata
acamarata deleted the fix/counts-workflow-mode-b branch September 11, 2026 10:58
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