Skip to content

fix(ci): correct 3 secret-name mismatches causing silent no-ops#352

Merged
hyperpolymath merged 1 commit into
mainfrom
fix-secret-name-mismatches
Jul 4, 2026
Merged

fix(ci): correct 3 secret-name mismatches causing silent no-ops#352
hyperpolymath merged 1 commit into
mainfrom
fix-secret-name-mismatches

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Post-breach credential audit found two workflows referencing secret names that don't exist on this repo, causing silent degradation instead of loud failure:

  1. supervised-fleet-scan.yml — referenced secrets.FLEET_SCAN_PAT (never configured). Only HYPATIA_SCAN_PAT exists, and its scope matches exactly what this step's own comment says it needs (Contents + Dependabot alerts read, for cross-repo CVE scanning). Pointed at the secret that actually exists.
  2. inbox-steward.yml "Validate PRs" — referenced secrets.FARM_PAT (never configured). This step only reads check-runs/reviews/PRs on ${{ github.repository }} itself — never needed a cross-repo PAT. Switched to secrets.GITHUB_TOKEN.
  3. inbox-steward.yml "Send dispatch to Hypatia" — same missing FARM_PAT, but this step genuinely dispatches cross-repo, so kept the PAT-with-fallback shape, just pointed at FARM_DISPATCH_TOKEN (the secret that's actually meant to carry that capability — currently dead pending a separate redistribution effort, tracked elsewhere; the || secrets.GITHUB_TOKEN fallback means this degrades safely either way).

No behavior regression possible — all three references were 100% guaranteed-broken before this change (referencing secrets that don't exist), so this is strictly an improvement.

Note

Unrelated to this PR: git push surfaced "GitHub found 4 vulnerabilities on this repo's default branch (1 high, 1 moderate, 2 low)" via Dependabot — flagging for separate follow-up, not touched here.

🤖 Generated with Claude Code

Found during a post-breach credential audit: these workflows reference
secret names that don't exist on this repo, so the affected steps
silently degrade (empty token / fallback) instead of failing loudly.

- supervised-fleet-scan.yml: referenced secrets.FLEET_SCAN_PAT, which
  has never existed here — only HYPATIA_SCAN_PAT is configured, and
  its scope (Contents+Dependabot alerts read) is exactly what this
  step's own comment says it needs. Pointed it at the secret that
  actually exists.
- inbox-steward.yml "Validate PRs": referenced secrets.FARM_PAT (never
  configured). This step only reads check-runs/reviews/PRs on this
  same repo — it never needed a cross-repo PAT. Switched to
  secrets.GITHUB_TOKEN, which is sufficient and always present.
- inbox-steward.yml "Send dispatch to Hypatia": same missing FARM_PAT
  reference, but this step genuinely dispatches cross-repo, so it
  keeps the same PAT-with-fallback shape — just pointed at
  FARM_DISPATCH_TOKEN, the secret that's actually meant to carry that
  capability (currently dead pending redistribution of the new
  FARM_DISPATCH_PAT value, tracked separately).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath merged commit 96f97a2 into main Jul 4, 2026
18 checks passed
@hyperpolymath
hyperpolymath deleted the fix-secret-name-mismatches branch July 4, 2026 14:02
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