Repository navigation
ci: move the greenlight AI review caller to greenlight-actions v2 - #139
Merged
Merged
Conversation
Replace .github/workflows/greenlight-review.yml with the v2 example from dourolabs/greenlight-actions. The caller now calls the impl at @v2, grants id-token: write, and passes the optional verdict_url input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aditya520
approved these changes
Oct 19, 2026
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.
What changes
This PR replaces
.github/workflows/greenlight-review.ymlwith thev2caller fromdourolabs/greenlight-actions/examples/greenlight-review.yml. The file is copied unchanged. Compared with the currentv1caller, it:greenlight-review-impl.yml@v2instead of@v1;id-token: writeto thereviewjob's permissions;verdict_urlinput underworkflow_dispatchand passes it to the reusable workflow;The
reviewjob in the reusable workflow keepscontents: read. Only itsreportjob requestsid-token: write.Why
Greenlight will soon accept an AI review verdict only from the workflow run that it dispatched. In
v2, thereportjob posts the check run as before. It then sends the verdict to Greenlight'sverdict_urlwith a GitHub OIDC token, so Greenlight can confirm which run sent it.Once Greenlight ships that change, it sends
verdict_urlwith every dispatch. Av1caller does not declare that input, so GitHub rejects the dispatch with422, and Greenlight showsreview_dispatch_failedon the PR.What changes for you today
Nothing. This repo does not configure any Greenlight
reviews, so Greenlight does not dispatch this workflow today. Even if it did, the current Greenlight server sends only the six existing inputs.verdict_urlstays empty, and thereportjob then does exactly whatv1does.This PR means that if the repo adds a Greenlight review later, it already runs the right caller version.
Checks
examples/greenlight-review.ymlat thev2tag ofdourolabs/greenlight-actions.scripts/check-review-workflow.shindourolabs/greenlight-actionspasses against that example.prettier --checkpasses on it.Because this PR edits
.github/workflows/**, a maintainer of this repo needs to merge it.🤖 Generated with Claude Code