open_pr.sh's PR-dedup loop relied on `gh pr diff <num>` which the GitHub API refuses with HTTP 406 once a PR exceeds 300 changed files. Under `set -euo pipefail` that killed the workflow whenever any unrelated large PR was open against the same base branch. Replace the diff-hash check with a tree-SHA comparison: fetch each PR's head commit shallowly, compare `git log -1 --format=%T` against HEAD's tree. Same-tree means same end-state regardless of base SHA, whitespace, file order, or patch context. Unfetchable heads (deleted branches, lost permissions) fall through as non-duplicates instead of aborting the run. image_versions.sh / repository_refs.sh also pick up an explicit `# shellcheck disable=SC1091` above their `. .env` source since the dotenv file is generated at runtime and never present during shellcheck's static parse. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Update Pipeline 🔄
Shell helpers that drive the scheduled Update: Versions workflow.
Scope 📋
This directory contains the helpers invoked by update.yml to bump pinned upstream versions and open a pull request once per day. The helpers are thin wrappers: the image-version and repository-ref bumpers delegate to Python CLIs under cli/contributing/ that scan roles/*/meta/services.yml and rewrite version pins in place; the PR-open helper commits, force-pushes the update branch, and creates or refreshes the PR via gh. Helpers MUST NOT be called from workflows other than Update: Versions; the CI_ENABLE_AUTO_UPDATES gate is enforced once, at the workflow's job level, and bypassing it from another caller would create PRs even when auto-updates are intentionally disabled.
Each shim MUST resolve the repository root relative to its own location so it can run from any working directory, MUST forward arguments to the underlying CLI so --dry-run and similar flags keep working from the shell, and MUST exit non-zero on CLI failure so the workflow surfaces the error.
For the workflow catalog see workflows.md. For the repository variable that gates the workflow see configuration.md. For the App-token secrets that the PR-opening step requires see secrets.md.