- Newest
- Most votes
- Most comments
The WORKFLOW_JOB_QUEUED event type is indeed supported by AWS CodeBuild, but there are a few specific requirements and potential issues that could be causing your webhook to fail.
First, the WORKFLOW_JOB_QUEUED event type works specifically with GitHub and GitHub Enterprise only, as indicated in the documentation. Since you're using GitHub, this shouldn't be the issue.
When using this event type, you might need to add a WORKFLOW_NAME filter to your webhook filter group. The WORKFLOW_NAME filter uses a regular expression pattern to match the workflow name, and it's specifically designed to be used with GitHub Actions workflow job queued request events.
Another potential issue could be related to permissions. If you're using GitHub Actions with deployment protection rules, CodeBuild needs to have read permissions for deployments and actions within GitHub. Verify that the credentials associated with your CodeBuild project (via the CodeStar connection) have the necessary permissions.
Additionally, check if your webhook filter group is correctly configured. Remember that a build is triggered if any filter group evaluates to true, which occurs when all the filters in the group evaluate to true. Make sure your filter configuration matches the expected pattern for the WORKFLOW_JOB_QUEUED event.
If the issue persists, you can debug by examining the webhook delivery in GitHub to see CodeBuild's response to the webhook's delivery payload. This can provide more specific information about why the build isn't being triggered.
Sources
Troubleshoot the webhook - AWS CodeBuild
WebhookFilter - AWS CodeBuild
GitHub webhook events - AWS CodeBuild
answered a year ago
I've tried your recommendations without success. I've added an extra filter group with the following filters:
- "WORKFLOW_JOB_QUEUED", and
- "WORKFLOW_NAME" with ".*" and then with a specific workflow name
It's important for you to know that "PUSH" events does trigger the CodeBuild run.
The response body that the GitHub webhook is getting from CodeBuild is: {"response":"No build triggered for specified payload","statusCode":200}
What else can I try to make this work?
answered a year ago
Relevant content
- AWS OFFICIALUpdated 10 months ago
