Files
worktrunk/.github/workflows/tend-weekly.yaml
45d9b4e842 Run Worktrunk Tend workflows with Codex on gpt-6-sol (#4240)
Switch Worktrunk's Tend agent workflows to Codex on `gpt-6-sol`,
generated with Tend 0.3.14. Mackup's existing account rotator owns
subscription refresh (`codex.auth_refresh: false`) and publishes
access-only `CODEX_AUTH_JSON` plus `CODEX_ACCOUNT`. This removes the
proposed hosted refresh workflow and its separate login/PAT requirement.
The unused hosted-refresh PAT secret has been removed.

Validation: `actionlint` and the complete branch whitespace check pass.
An independent code review found no issues. GitHub CI, including
Codecov, passes at `8e842331aa0f29949579050551dd2d0b67fb04b1`, and
worktrunk-bot approved that exact commit. A real Codex 0.160.0 request
to `gpt-6-sol` succeeded with an access-only credential derived from a
saved login selected by Mackup's allocator. All 5,388 Rust tests passed
(one skipped), along with documentation checks and the final full
pre-commit run.

Cutover requires maintainer merge authorization. Mackup reads ownership
from the default branch and the `tend` environment admits only main, so
credential publication and a hosted Codex run follow the merge. After
landing, run the allocator, verify the published account and secret
timestamp, rerun `tend check`, and validate a hosted agent run; retry
any agent job that starts before publication. Current `tend check`
passes every check except the missing Codex consumer credential. This
supersedes the earlier dedicated-login premerge condition; hosted
operation is not yet validated.

> _This was written by Codex on behalf of max-sixty_

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-10-21 10:19:04 -07:00

50 lines
1.7 KiB
YAML

# Generated by tend 0.3.14. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
# does, edit the relevant skill (for example, `running-tend`) in this repo's
# .claude/skills/ directory, or open an issue at
# https://github.com/max-sixty/tend/issues for changes that need to
# happen upstream in the tend-ci-runner plugin.
name: tend-weekly
on:
schedule:
- cron: "17 9 * * 0"
workflow_dispatch:
jobs:
weekly:
if: github.repository_owner == 'max-sixty' && vars.TEND_ENABLED != 'false'
runs-on: ubuntu-24.04
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
actions: read
issues: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
fetch-depth: 0
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- uses: max-sixty/tend/codex@0.3.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
bot_name: worktrunk-bot
model: gpt-6-sol
checkout_mode: base
base_branch: ${{ github.event.repository.default_branch }}
prompt: |2
$weekly