Repository navigation
workflows: bind bot token to GITHUB_TOKEN, not GH_TOKEN - #373
Merged
Merged
Conversation
Tend's design intent is one bot identity everywhere in a job. Setting `GH_TOKEN` only overrides the `gh` CLI — third-party actions and subprocesses still see the auto-injected `github-actions[bot]` token. `GITHUB_TOKEN` is auto-injected by GitHub Actions and read by most tools, and `claude-code-action` already overwrites it internally, so binding the bot token there gives consistent identity across the job. Updates the generator templates, the composite action's own shell steps, and adds a paragraph to the security-model.md "Token assignment" section. The generated tend-*.yaml workflows are not touched here — they regenerate from the next published release via the nightly `uvx tend@latest init`. Co-Authored-By: Claude <[email protected]>
tend-agent
approved these changes
May 2, 2026
max-sixty
added a commit
that referenced
this pull request
May 8, 2026
## Summary - Bumps generator version 0.0.16 → 0.0.17 - 57 commits since 0.0.16; the headline change is #375 (gate fork-exposed scheduled workflows on `github.repository_owner` so consumer-repo forks no-op on the cron and stop generating cross-repo CheckSuite notifications back to `tend-agent`) - Other notable changes: workflow header stamps tend version (#316), bot-token rebound to `GITHUB_TOKEN` (#373), review skill draft/light-mode + polling improvements (#308, #311, #315, #362) ## Test plan - [x] `uv run pytest` — 188 passed - [x] `pre-commit run --all-files` — clean - [ ] After merge: tag 0.0.17, PyPI publishes, regenerate tend's own workflows with `uvx tend@latest init` Co-authored-by: Claude <[email protected]>
1 of 2 tasks
max-sixty
added a commit
that referenced
this pull request
May 8, 2026
## Summary Regenerates `.github/workflows/tend-*.yaml` against the freshly published 0.0.17. Brings tend's own deployment in line with what consumers will see after their nightly regen: - **Fork guard (#375)**: scheduled jobs now carry `if: github.repository_owner == 'max-sixty'`, so forks of tend (or fork-of-fork chains) no-op on the cron instead of failing on missing secrets and pinging `tend-agent` with cross-repo CheckSuite notifications. - **Header (#316)**: workflow comment now reports the generator version it was rendered from. - **GITHUB_TOKEN rebind (#373)**: the bot token is now exported as `GITHUB_TOKEN` (previously `GH_TOKEN`). ## Test plan - [x] `uvx [email protected] init` produced a clean diff (8 files, +19/-16) limited to header, `if:` guard, and the token env-var rename - [ ] Watch tomorrow's scheduled runs to confirm the guard does not gate out tend's own canonical workflow Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GH_TOKENonly overrides theghCLI — third-party actions and subprocesses still see the auto-injectedgithub-actions[bot]token.GITHUB_TOKENis auto-injected by GitHub Actions and read by most tools, andclaude-code-actionalready overwrites it internally, so binding the bot token there gives consistent identity across the job.docs/security-model.md"Token assignment" explaining the convention.tend-*.yamlworkflows are not touched here — they regenerate from the next published release via the nightlyuvx tend@latest init.Test plan
uv run pytest(164 passed)pre-commit run --all-files(clean)🤖 Generated with Claude Code