Repository navigation
config: declare CODEX_AUTH_JSON in secrets.allowed - #528
Merged
Merged
Conversation
Closes #527 CODEX_AUTH_JSON is consumed by codex-auth-refresh.yaml (a custom non-tend workflow that rotates the Codex OAuth token nightly) and intentionally lives at repo scope — the consumer-workflow design documented in commit fba319e and in the refresh workflow's own comment block. Declare the posture explicitly so `tend check` stops flagging it as drift. Co-Authored-By: Claude <[email protected]>
max-sixty
added a commit
that referenced
this pull request
May 16, 2026
## Summary Release 0.0.22 — the last known Codex-harness blocker. 3 commits since 0.0.21: - #525 — base64-encode `final_message` so the agent's output can't break the `$GITHUB_OUTPUT` heredoc (every Codex run was exiting red *after* the agent succeeded) - #528 — declare `CODEX_AUTH_JSON` in `secrets.allowed` - #529 — Codex in package/CLI descriptions; fix stale `.toml` ref ## Test plan - [ ] CI green (test, test-worker, lint) - [ ] After merge: tag `0.0.22`, PyPI publish, `uvx [email protected] --help` works - [ ] Regenerate tend's own workflows to `@0.0.22` 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.
Problem
uvx tend@latest checkflagsCODEX_AUTH_JSONas an unexpected repo-level secret — therepo-secret-allowlistcheck compares actual repo secrets againstcfg.bot_token_secret + engine_auth_secrets + secrets.allowed, and.config/tend.yamlhas nosecrets.alloweddeclaration, soCODEX_AUTH_JSONfalls outside the allowed set under the Claude harness.The secret is consumed by
codex-auth-refresh.yaml, which rotates the Codex OAuth token nightly. The refresh workflow's own comment block notes it is repo-scoped on purpose so consumer workflows can read it without declaring an environment, and commitfba319e("write CODEX_AUTH_JSON as a repo secret, not env-scoped") locked that posture in deliberately.Solution
Declare
CODEX_AUTH_JSONinsecrets.allowedin.config/tend.yaml, with a comment pointing to the workflow and security model.This is purely a check-allowlist change —
allowed_repo_secretsis only read bychecks.pyand is not used during workflow generation, so no regeneration is required.Testing
pytest— 230 passed).repo-secret-allowlistunexpected-set is empty against the current repo secrets (BOT_TOKEN,CLAUDE_CODE_OAUTH_TOKEN,CODEX_AUTH_JSON).pre-commit(typos / yaml / actionlint) clean on the edited file.Closes #527 — automated triage