fix(grain): save before deploying workflow#2678
Merged
aadamgough merged 3 commits intostagingfrom Jan 4, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR fixes a bug where saving a Grain webhook trigger before deploying the workflow would fail with a 403 error. The fix adds a verification request detector for Grain webhooks that intercepts the provider's reachability check (empty POST requests with no Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Grain as Grain Service
participant Webhook as Webhook Handler
participant Auth as Auth Verify
participant Grain_Check as Grain Check
participant Preprocess as Preprocessing
participant Deploy as Deployment Check
User->>Grain: Configure webhook trigger
Grain->>Webhook: POST (verification with empty/minimal body)
Webhook->>Auth: Verify provider auth
Auth-->>Webhook: ✓ Auth passed
Webhook->>Grain_Check: Check if Grain verification
Grain_Check-->>Webhook: ✓ Is Grain verification
Webhook-->>Grain: 200 OK (webhook verified)
Webhook-->>User: Success (before deployment needed)
Note over Webhook: Without fix:<br/>Would continue to Preprocess<br/>→ Deploy Check (403)<br/>→ Error
|
waleedlatif1
pushed a commit
that referenced
this pull request
Jan 8, 2026
* save before deployment fix * moved to helper * removed comment
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.
Summary
createWebhookPreprocessing was throwing a 403 if I tried to save the grain trigger before deploying workflow. Grain sends a POST request to the actualy url for verification. This fix allows you to save the webhook before deploying the workflow without getting an error.
Type of Change
Testing
Tested Manually
Checklist