Skip to content

fix(ci): drop Packagist secret requirement from release doctor#90

Merged
mikemilla merged 1 commit into
mainfrom
mike/release-doctor-no-packagist-token
Jul 10, 2026
Merged

fix(ci): drop Packagist secret requirement from release doctor#90
mikemilla merged 1 commit into
mainfrom
mike/release-doctor-no-packagist-token

Conversation

@mikemilla

Copy link
Copy Markdown
Contributor

Problem

Every release PR shows a red release doctor check that fails in ~5s:

- The PACKAGIST_USERNAME secret has not been set...
- The PACKAGIST_SAFE_KEY secret has not been set...

But Packagist publishing for trycourier/courier is handled by Packagist's GitHub auto-update hook (webhook on new tags), not a CI push — so those secrets aren't needed. The package is current at 5.11.2, matching the latest tag, i.e. publishing already works with no token.

Root cause

stainless.yml already sets php.publish.packagist: false (2025-11-12), but this generated bin/check-release-environment was last synced 2025-10-07 — before that change — so it still demands the Packagist secrets. courier-node, which needs no publish secrets (OIDC), generates an empty check that always passes. php should look the same.

Fix

Make check-release-environment token-less (empty errors array, always "ready"), matching courier-node. Publishing continues via the Packagist hook; this only removes the spurious red check.

Note

This is a Stainless-generated file. It only regenerates on a settings-sync (last one was 2025-10-07), and when it does it should come out token-less anyway (given packagist: false), so this edit won't regress. The durable equivalent is a Stainless settings resync of this repo.

🤖 Generated with Claude Code

Packagist publishing for trycourier/courier is handled by Packagist's
GitHub auto-update hook (webhook fires on new tags), not a CI push, so the
PACKAGIST_USERNAME / PACKAGIST_SAFE_KEY secrets are not needed. stainless.yml
already sets php.publish.packagist: false (2025-11-12), but this generated
check-release-environment was last synced 2025-10-07 and still fails the
"release doctor" check when those secrets are absent — a false alarm that
paints every release PR red even though Packagist is current (5.11.2).

Make the check token-less, matching courier-node's OIDC check (which has an
empty errors array and always passes). Publishing continues via the
Packagist hook; this only removes the spurious red check.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mikemilla mikemilla merged commit e0b992d into main Jul 10, 2026
5 checks passed
@mikemilla mikemilla deleted the mike/release-doctor-no-packagist-token branch July 10, 2026 00:47
@stainless-app stainless-app Bot mentioned this pull request Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant