Skip to content

ci: replace add-to-kanban body with token-shim calling meta's composite action#242

Merged
tamakiii merged 1 commit intomainfrom
add/kanban-action-shim
Apr 19, 2026
Merged

ci: replace add-to-kanban body with token-shim calling meta's composite action#242
tamakiii merged 1 commit intomainfrom
add/kanban-action-shim

Conversation

@tamakiii-doppelganger
Copy link
Copy Markdown
Contributor

Summary

Completes the rollout of tamakiii/meta#458 with the token-shim variant. dotfiles is the public outlier among the 5 downstream callers; GitHub's built-in "Accessible from repositories owned by 'tamakiii'" setting on the private tamakiii/meta only grants access to private callers, so dotfiles has to fetch the action directly with a read-only token rather than using the simple remote-action reference.

The shim checks out only .github/actions/add-to-kanban from meta via actions/checkout@v5 with sparse-checkout, then references it at ./.meta-action/.github/actions/add-to-kanban. 28-line workflow instead of the 10-line version used by the 4 private siblings — worth the asymmetry to keep the action body single-sourced.

Siblings for reference (all merged, dogfood-green):

Prerequisite: add META_READ_PAT secret to this repo

The first dogfood run on this PR will fail until the secret is configured. Setup:

  1. github.com → Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token
  2. Resource owner: tamakiii
  3. Repository access: Only select repositoriestamakiii/meta
  4. Permissions → Repository permissions → Contents → Read-only (Metadata read is auto-added; leave everything else at "No access")
  5. Generate; copy the token.
  6. On tamakiii/dotfiles → Settings → Secrets and variables → Actions, add a new repository secret named META_READ_PAT with the token value.

Max PAT lifetime is one year. Note the expiry and set a calendar reminder to rotate (or later upgrade to a dedicated tamakiii-meta-reader GitHub App for rotation-free auth).

Test plan

  • After META_READ_PAT is configured: close/reopen this PR to retrigger the workflow. Expect green — PR added to Kanban fix-default-shell #5, flipped to In Progress + Sprint=current; linked tamakiii/meta#458 flips to In Progress + Sprint=current.
  • After merge, close an unrelated issue to confirm issues.closed still moves items to Done + Sprint=current via the token-shim path.

Scope note

  • META_READ_PAT scope is intentionally Contents:Read on meta only. If leaked, the blast radius is equivalent to cloning meta — no issue writes, no PR writes, no other repos. This is the minimum scope that makes the workaround work.

Related to tamakiii/meta#458.

…te action

dotfiles is public, so GitHub's built-in "Accessible from repositories
owned by the user" setting on the private tamakiii/meta (which grants
the other 4 downstream callers simple remote-action access) does not
apply here — that setting is private-caller-only. Instead, check the
action out via actions/checkout with a fine-grained PAT scoped to
Contents:Read on tamakiii/meta only, then reference it locally.

New secret required on this repo: META_READ_PAT — a fine-grained PAT
with resource owner 'tamakiii', repository access restricted to
'tamakiii/meta', permission Contents:Read-only (nothing else). Max PAT
lifetime is one year, so rotation is a calendar item.

The 4 private siblings (claudius/home/myfiles/openclaw-workspace) use
the simpler shim without checkout/token. Once this lands, structural
changes to the Kanban automation still land as a single PR on
tamakiii/meta for all 5 callers — dotfiles just pays a sparse checkout
step on every event.

Related to tamakiii/meta#458
@tamakiii tamakiii merged commit c748822 into main Apr 19, 2026
2 of 3 checks passed
@tamakiii tamakiii deleted the add/kanban-action-shim branch April 19, 2026 11:39
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.

2 participants