Repository navigation
Conversation
…r Commit (#410) * Hold the Upstream-Dependency Watcher While Its PR Carries a Maintainer Commit create-pull-request rebuilds upstream-dependency-develop from develop and force-updates it, so a Dockerfile commit a maintainer added to the open review PR was lost at the next daily run. The watcher now skips its checkout, resolve, and PR steps while the open PR carries a commit the App did not author. The check reads the open PR rather than the branch, since merged head branches are not auto-deleted here. WORKFLOW.md records the hold in the watcher section, D10.6, and trace S25. Fixes #408 Co-Authored-By: Claude Opus 5.5 <[email protected]> * Ignore a Fork's Same-Named Pull Request in the Watcher Hold gh pr list --head matches the branch name only, so a fork's pull request on a branch named upstream-dependency-develop would have held the watcher for as long as it stayed open. The hold now skips cross-repository pull requests. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Hold the Watcher on a Commit With No Listed Author A commit whose author email links to no GitHub account can come back from gh pr list with an empty authors array, which the earlier filter skipped, so the hold cleared. A commit with no listed author now counts as not the App's, alongside one listed with an empty login. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
🟡 Changes recommended
Two critical workflow issues remain: a race can overwrite a newly pushed PR commit, and the head query can miss the repository’s held PR when same-named fork PRs fill the default results page.
2 open issues
What changed in this PR
Promotes the upstream-dependency watcher hold from develop to main, protecting maintainer commits on its open review PR and documenting the behavior.
Changes:
- Adds held-PR detection for same-repository watcher pull requests containing non-App commits.
- Skips checkout, dependency resolution, and PR updates while a hold is active.
- Documents the hold in the workflow guidance, D10.6, audit evidence, and scenario S25.
This pull request requires changes.
| File | Review summary |
|---|---|
.github/workflows/check-upstream-dependency.yml |
Adds held-PR detection and conditional watcher steps. Findings: preserve ERR propagation with set -Eeuo pipefail (nit, 1 vote); recheck the PR or make the branch update conditional on the observed head to prevent a race (critical, 2 votes); restrict or paginate the head query to avoid missing same-repository PRs behind fork PRs (critical, 1 vote). |
WORKFLOW.md |
Documents the watcher hold, guarantee, audit coverage, and S25 verification scenario. |
Review effort: Lite
…ep (#412) gh pr list matched the head by branch name and read only its default page, so enough same-named fork pull requests could push the real one off that page and clear the hold. The check now asks the REST API for <owner>:upstream-dependency-develop, which returns only this repository's pull request, then reads that one pull request's commits. The check also moves to immediately before create-pull-request and gates only that step, since checkout and resolve write nothing remote. That leaves the action's own runtime as the only window for a push to race it. Co-authored-by: Claude Opus 5.5 <[email protected]>
WORKFLOW.md D9.3 and GOVERNANCE.md "Workflow YAML Conventions" require every multi-line bash run block to start with set -Eeuo pipefail, so an ERR trap is inherited by functions and subshells. Both of this workflow's blocks used set -euo pipefail, the held step and the resolve step alike. Co-authored-by: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The changes address the watcher’s maintainer-commit overwrite risk through scoped pull-request detection, targeted creation gating, shell hardening, and corresponding documentation, with no unresolved review issues indicated.
No open issues 🎉
1 resolved since last review
Review effort: Lite


Summary
Promotes
developtomain, carrying the commits inorigin/main..origin/develop.upstream-dependency-developcarries a commit its App did not author. Before this,create-pull-requestrebuilt the branch fromdevelopon the next daily run and force-reset any maintainer commit, such as aDocker/Dockerfilechange, off the review PR. The hold reads the open, same-repository PR rather than the branch. It treats a commit with no linked author as not the App's.WORKFLOW.mdsection 7 records the hold in the watcher section, D10.6, its audit bullet, and trace S25.<owner>:upstream-dependency-develop) through the REST API, so same-named fork PRs can't crowd it out. It also runs immediately beforecreate-pull-requestand gates only that step. The race left is the action's own runtime, declined under "Trust Boundaries and Hardening Effort".set -Eeuo pipefail, per D9.3.Neither file is
upstream-version.json, so this promotion does not trigger an image publish.Fixes #408
🤖 Generated with Claude Code