Skip to content

feat(heart): heart-health reads cross-repo with the pyautolabs-bot App (token phase 2a) - #317

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/github-token-p2a-readers-app
Oct 23, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/github-token-p2a-readers-app

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Token consolidation phase 2a (PyAutoLabs/PyAutoBrain#531) for the Heart.

heart-health.yml mints an owner-wide, read-only pyautolabs-bot App token (actions, contents and pull-requests read; no repositories:) for the cloud checks. It replaces HEART_TIMINGS_TOKEN || GITHUB_TOKEN: that secret was never created, so cross-repo artifact downloads answered 403. The fallback is deleted, so a failed mint fails the job.

Other changes:

  • The wiring test now checks the mint and that there is no ||.
  • Stale comments in smoke_timings.sh and unit_timings.sh are reworded.
  • Own-repo steps (README commit, tracking issue) stay on GITHUB_TOKEN.

API Changes

None (workflow auth change).
See full details below.

Test Plan

  • YAML parse; pytest tests -q: 1307 passed
  • Tenant firewall (organ code): OK
  • After merge: gh workflow run heart-health.yml; smoke/unit timing rows ingest cross-repo artifacts without 403
Full API Changes (for automation & release notes)

Required configuration

  • Now read: vars.APP_CLIENT_ID, secrets.APP_PRIVATE_KEY (org level).
  • No longer read: secrets.HEART_TIMINGS_TOKEN (never existed).

Heart readiness: YELLOW, acknowledged by the human before opening (manifest drift on one workspace checkout; PyAutoLens release validation stale — both unrelated to this change).

🤖 Generated with Claude Code

heart-health.yml mints a pyautolabs-bot token (actions, contents and
pull-requests read, no repositories: scope) for the cloud checks, replacing the
never-created HEART_TIMINGS_TOKEN and its silent fallback to GITHUB_TOKEN, so
cross-repo artifact downloads stop answering 403. The wiring test now pins the
mint and the absence of a fallback.

Refs PyAutoLabs/PyAutoBrain#531

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit d437fc0 into main Oct 23, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/github-token-p2a-readers-app branch October 23, 2026 14:38
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