mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 04:47:24 +01:00
* fix(ci): the phantom check could only ever withhold in CI, which is decoration #105 shipped the phantom-secret check correctly withholding when it cannot list secrets — the right fix for reporting 21 secrets as missing when it was merely unable to read them. But listing secrets needs a scope no token in these workflows has, so in CI it withheld EVERY time. A check that can only ever withhold produces no signal and no red, which is the decoration this whole file exists to delete. It was honest and useless. Actions can answer the question without that scope: `toJSON(secrets)` hands a run its own secrets context, and its KEYS are the names available to that run. The workflow passes them in SECRET_NAMES, one per line, via an env var — not interpolated into the script body, so no secret material is ever shell-quoted — and reduced to keys with jq before anything is printed. Actions masks the values regardless; none is ever echoed. When SECRET_NAMES is set it is authoritative and the API listings are not consulted. Unset, the previous behaviour stands: both listings must succeed or the check withholds out loud. So it bites on a PR, bites locally, and still refuses to invent a finding from an outage. Four cases pin it against the same blind stub used for the withhold test: a secret the context lists is not charged, one it does not list still is, the run FAILS rather than withholding, and the withheld banner is absent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * chore: re-trigger checks Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>