worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

tend check: configuration drift on max-sixty/worktrunk

Open worktrunk-bot opened this issue 2 weeks ago • 1 comments

tend check (0.3.27) reports one failing check on this repo. The nightly sweep files this issue so the drift is tracked instead of being re-diagnosed every night.

  • credential-environments: "'release' has no required reviewers, and is reached by a workflow running on workflow_dispatch, which the bot fires and steers against a ref the policy already admits, so its ref list does not gate it."

#4789 added the workflow_dispatch trigger with a release_tag input so an existing release can be recovered. The release environment is gated only by a deployment policy that admits tag *. Tag creation is admin-only (tag-protection passes), but dispatching does not create a tag. Any actor with write access, including this bot, can dispatch release.yaml against any existing tag whose workflow file has the trigger (the trusted recovery tag the comment describes, or any version tag cut after #4789) and choose which version release_tag publishes. That run reaches every job in release: the build and host jobs and the crates.io, winget, Homebrew, and AUR publishers. Tags cut before #4789 don't declare the trigger, so dispatching against them fails.

tend check accepts either fix:

  • add a required reviewer other than the bot to the release environment, or
  • reach the recovery path some other way than workflow_dispatch in a workflow that uses release.

Both are maintainer decisions. The first is a settings change only.

Last refreshed: 2026-11-21

worktrunk-bot avatar Nov 15 '26 06:11 worktrunk-bot

This still holds on the live repo. The release environment has only its tag-based deployment policy and no required reviewers. release.yaml on main still declares the workflow_dispatch trigger with release_tag.

#4798 (tend 0.3.24 → 0.3.25) adds a third way to clear this check. A maintainer can list credential-environments under checks.accepted in .config/tend.yaml with a reason, if dispatch-reachable publishing from release is an acceptable risk. The nightly drift step would then stop counting it as a failure. This depends on #4798 merging first. It is still a maintainer decision: add a required reviewer, move the recovery path off workflow_dispatch, or accept the exposure on record.

worktrunk-bot avatar Nov 15 '26 06:11 worktrunk-bot